aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@cygnus.com>2000-05-18 19:00:59 +0000
committerNick Clifton <nickc@gcc.gnu.org>2000-05-18 19:00:59 +0000
commit265f5849d7e2707ebbd72ef4f3a878cb20e7f8e7 (patch)
treed689b1db093c397c666796c39700ac699cacf58a /gcc
parent3642ea2fdad69e237495bde828693e4c34c5d410 (diff)
downloadgcc-265f5849d7e2707ebbd72ef4f3a878cb20e7f8e7.zip
gcc-265f5849d7e2707ebbd72ef4f3a878cb20e7f8e7.tar.gz
gcc-265f5849d7e2707ebbd72ef4f3a878cb20e7f8e7.tar.bz2
Place constant...
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. From-SVN: r33995
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/arm/unknown-elf.h5
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a63344f..ee5e9b4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2000-05-18 Nick Clifton <nickc@cygnus.com>
+
+ * config/arm/unknown-elf.h (UNIQUE_SECTION): 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.
+
Thu May 18 12:10:18 2000 Philippe De Muyter <phdm@macqel.be>
* configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
diff --git a/gcc/config/arm/unknown-elf.h b/gcc/config/arm/unknown-elf.h
index ba5d1ed..3575fe1 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; \
\