summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-28 02:21:54 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-28 02:21:54 +0000
commit66f29f9d1acc87ffd90e5f4ed170394beddc269e (patch)
treed253db6beb847e890a0c375f71b2e3c30045bf96
parent57e47080fe307ba9288f0bb978c1da6aa312c9df (diff)
downloadppe42-gcc-66f29f9d1acc87ffd90e5f4ed170394beddc269e.tar.gz
ppe42-gcc-66f29f9d1acc87ffd90e5f4ed170394beddc269e.zip
* config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
change to config/elfos.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34221 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/alpha/elf.h22
2 files changed, 23 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bed3c0399a9..461423fcdf4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2000-05-27 Richard Henderson <rth@cygnus.com>
+ * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
+ change to config/elfos.h.
+
+2000-05-27 Richard Henderson <rth@cygnus.com>
+
* Makefile.in (resource.o): Depend on except.h.
* except.h (output_exception_table_data): Prototype.
* genconfig.c (gen_peephole2): Prototype.
diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h
index 296359796f4..7fad44621dd 100644
--- a/gcc/config/alpha/elf.h
+++ b/gcc/config/alpha/elf.h
@@ -340,12 +340,11 @@ void FN () \
else \
data_section (); \
} \
- else if (TREE_CODE (DECL) == VAR_DECL \
- || TREE_CODE (DECL) == CONSTRUCTOR) \
+ else if (TREE_CODE (DECL) == VAR_DECL) \
{ \
if ((flag_pic && RELOC) \
- || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
- || !DECL_INITIAL (DECL) \
+ || ! TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
+ || ! DECL_INITIAL (DECL) \
|| (DECL_INITIAL (DECL) != error_mark_node \
&& !TREE_CONSTANT (DECL_INITIAL (DECL)))) \
{ \
@@ -358,6 +357,21 @@ void FN () \
else \
const_section (); \
} \
+ else if (TREE_CODE (DECL) == CONSTRUCTOR) \
+ { \
+ if ((flag_pic && RELOC) \
+ || ! TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
+ || ! TREE_CONSTANT (DECL)) \
+ { \
+ int size = int_size_in_bytes (TREE_TYPE (DECL)); \
+ if (size >= 0 && size <= g_switch_value) \
+ sdata_section (); \
+ else \
+ data_section (); \
+ } \
+ else \
+ const_section (); \
+ } \
else \
const_section (); \
}
OpenPOWER on IntegriCloud