diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-18 19:00:59 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-18 19:00:59 +0000 |
commit | 135ca74e1606d2c87d8bc7c653b7d8c3376920f8 (patch) | |
tree | d689b1db093c397c666796c39700ac699cacf58a /gcc/config/arm/unknown-elf.h | |
parent | c0ecaa498ad30c3d6a4e9cbfbaa7a8b469f37c50 (diff) | |
download | gcc-135ca74e1606d2c87d8bc7c653b7d8c3376920f8.tar.gz |
Place constant, uninitialised data in .rodata not .bss, and do not interpret an
error in the initialisation value as meaning that the variable should be
placed in the .bss section.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33995 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/arm/unknown-elf.h')
-rw-r--r-- | gcc/config/arm/unknown-elf.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/arm/unknown-elf.h b/gcc/config/arm/unknown-elf.h index ba5d1edbb4b..3575fe13b45 100644 --- a/gcc/config/arm/unknown-elf.h +++ b/gcc/config/arm/unknown-elf.h @@ -159,11 +159,10 @@ rdata_section () \ \ if (TREE_CODE (DECL) == FUNCTION_DECL) \ sec = 0; \ - else if (DECL_INITIAL (DECL) == 0 \ - || DECL_INITIAL (DECL) == error_mark_node) \ - sec = 3; \ else if (DECL_READONLY_SECTION (DECL, RELOC)) \ sec = 1; \ + else if (DECL_INITIAL (DECL) == NULL_TREE) \ + sec = 3; \ else \ sec = 2; \ \ |