(start_decl): Set DECL_COMMON before calling decl_attributes.

From-SVN: r9895
This commit is contained in:
Richard Kenner 1995-06-06 18:39:24 -04:00
parent e0dc347cf2
commit 8615176a9a
1 changed files with 4 additions and 4 deletions

View File

@ -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