diff options
| author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-06-03 22:13:55 +0000 |
|---|---|---|
| committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-06-03 22:13:55 +0000 |
| commit | 907df0b67353e9bccd8bde469d7812b0acf23d89 (patch) | |
| tree | 73870e672026a6fb90a9b8a4e9651919b4bb8a2c | |
| parent | aa51ba7537ef23faf5c9be30aed352615994de18 (diff) | |
| download | ppe42-gcc-907df0b67353e9bccd8bde469d7812b0acf23d89.tar.gz ppe42-gcc-907df0b67353e9bccd8bde469d7812b0acf23d89.zip | |
(make_decl_rtl): If section attribute is being ignored, really ignore it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7441 138bc75d-0d04-0410-961f-82ee72b054a4
| -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 ba6253c7401..da90a0c8dc3 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). |

