diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-06 18:39:24 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-06 18:39:24 -0400 |
commit | 8615176a9a8ff5d5093d8eaa61e8466c51a3e7a3 (patch) | |
tree | dc73a406918af8bc3ec6e2cd8801ca62bcaec9dc /gcc | |
parent | e0dc347cf2363060fc2ad64db9c65cfd3ab4b2b0 (diff) | |
download | gcc-8615176a9a8ff5d5093d8eaa61e8466c51a3e7a3.zip gcc-8615176a9a8ff5d5093d8eaa61e8466c51a3e7a3.tar.gz gcc-8615176a9a8ff5d5093d8eaa61e8466c51a3e7a3.tar.bz2 |
(start_decl): Set DECL_COMMON before calling decl_attributes.
From-SVN: r9895
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-decl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index e7beed8..af56e9b 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 |