Commit 265f5849 by Nick Clifton Committed by Nick Clifton

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
parent 3642ea2f
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> 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', * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
......
...@@ -159,11 +159,10 @@ rdata_section () \ ...@@ -159,11 +159,10 @@ rdata_section () \
\ \
if (TREE_CODE (DECL) == FUNCTION_DECL) \ if (TREE_CODE (DECL) == FUNCTION_DECL) \
sec = 0; \ sec = 0; \
else if (DECL_INITIAL (DECL) == 0 \
|| DECL_INITIAL (DECL) == error_mark_node) \
sec = 3; \
else if (DECL_READONLY_SECTION (DECL, RELOC)) \ else if (DECL_READONLY_SECTION (DECL, RELOC)) \
sec = 1; \ sec = 1; \
else if (DECL_INITIAL (DECL) == NULL_TREE) \
sec = 3; \
else \ else \
sec = 2; \ sec = 2; \
\ \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment