Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1e50b042
Commit
1e50b042
authored
Feb 17, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(duplicate_decls): Merge section name into new decl.
From-SVN: r6583
parent
5289b665
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
gcc/c-decl.c
+7
-0
No files found.
gcc/c-decl.c
View file @
1e50b042
...
@@ -1671,6 +1671,13 @@ duplicate_decls (newdecl, olddecl)
...
@@ -1671,6 +1671,13 @@ duplicate_decls (newdecl, olddecl)
/* Merge the initialization information. */
/* Merge the initialization information. */
if
(
DECL_INITIAL
(
newdecl
)
==
0
)
if
(
DECL_INITIAL
(
newdecl
)
==
0
)
DECL_INITIAL
(
newdecl
)
=
DECL_INITIAL
(
olddecl
);
DECL_INITIAL
(
newdecl
)
=
DECL_INITIAL
(
olddecl
);
/* Merge the section attribute.
We want to issue an error if the sections conflict but that must be
done later in decl_attributes since we are called before attributes
are assigned. */
if
(
DECL_SECTION_NAME
(
newdecl
)
==
NULL_TREE
)
DECL_SECTION_NAME
(
newdecl
)
=
DECL_SECTION_NAME
(
olddecl
);
}
}
/* If cannot merge, then use the new type and qualifiers,
/* If cannot merge, then use the new type and qualifiers,
and don't preserve the old rtl. */
and don't preserve the old rtl. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment