diff options
author | Doug Evans <dje@gnu.org> | 1994-06-03 22:13:55 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1994-06-03 22:13:55 +0000 |
commit | b3de8b7505d7952ddb463576ad6c080b09097ea4 (patch) | |
tree | 73870e672026a6fb90a9b8a4e9651919b4bb8a2c /gcc | |
parent | f58e9815f7c8ee6d372a6ed44a5b12188781a471 (diff) | |
download | gcc-b3de8b7505d7952ddb463576ad6c080b09097ea4.zip gcc-b3de8b7505d7952ddb463576ad6c080b09097ea4.tar.gz gcc-b3de8b7505d7952ddb463576ad6c080b09097ea4.tar.bz2 |
(make_decl_rtl): If section attribute is being ignored, really ignore it.
From-SVN: r7441
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/varasm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index ba6253c..da90a0c 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). |