From 8615176a9a8ff5d5093d8eaa61e8466c51a3e7a3 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 6 Jun 1995 18:39:24 -0400 Subject: [PATCH] (start_decl): Set DECL_COMMON before calling decl_attributes. From-SVN: r9895 --- gcc/c-decl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index e7beed87edd..af56e9bba9f 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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 -- 2.30.2