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
8615176a
Commit
8615176a
authored
Jun 06, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(start_decl): Set DECL_COMMON before calling decl_attributes.
From-SVN: r9895
parent
e0dc347c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gcc/c-decl.c
+4
-4
No files found.
gcc/c-decl.c
View file @
8615176a
...
...
@@ -3533,6 +3533,10 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes)
if
(
TREE_CODE
(
decl
)
==
FUNCTION_DECL
)
gen_aux_info_record
(
decl
,
0
,
0
,
TYPE_ARG_TYPES
(
TREE_TYPE
(
decl
))
!=
0
);
/* For C and Objective-C, we by default put things in .common when
possible. */
DECL_COMMON
(
decl
)
=
1
;
/* Set attributes here so if duplicate decl, will have proper attributes. */
decl_attributes
(
decl
,
attributes
,
prefix_attributes
);
...
...
@@ -3540,10 +3544,6 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes)
TEM may equal DECL or it may be a previous decl of the same name. */
tem
=
pushdecl
(
decl
);
/* For C and Objective-C, we by default put things in .common when
possible. */
DECL_COMMON
(
tem
)
=
1
;
/* For a local variable, define the RTL now. */
if
(
current_binding_level
!=
global_binding_level
/* But not if this is a duplicate decl
...
...
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