(make_decl_rtl): If section attribute is being ignored, really ignore it.
authorDoug Evans <dje@gnu.org>
Fri, 3 Jun 1994 22:13:55 +0000 (22:13 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 3 Jun 1994 22:13:55 +0000 (22:13 +0000)
From-SVN: r7441

gcc/varasm.c

index ba6253c..da90a0c 100644 (file)
@@ -503,6 +503,9 @@ make_decl_rtl (decl, asmspec, top_level)
        {
          warning_with_decl (decl,
                             "section attribute ignored for uninitialized variable `%s'");
+         /* Remove the section name so subsequent declarations won't see it.
+            We are ignoring it, remember.  */
+         DECL_SECTION_NAME (decl) = NULL_TREE;
        }
 
       /* Now handle ordinary static variables and functions (in memory).