From: Doug Evans Date: Fri, 3 Jun 1994 22:13:55 +0000 (+0000) Subject: (make_decl_rtl): If section attribute is being ignored, really ignore it. X-Git-Tag: misc/cutover-egcs-0~6502 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3de8b7505d7952ddb463576ad6c080b09097ea4;p=thirdparty%2Fgcc.git (make_decl_rtl): If section attribute is being ignored, really ignore it. From-SVN: r7441 --- diff --git a/gcc/varasm.c b/gcc/varasm.c index ba6253c74015..da90a0c8dc31 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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).