diff options
author | Richard Henderson <rth@redhat.com> | 2001-11-26 14:16:56 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-11-26 14:16:56 -0800 |
commit | c70ebb687c8bf3e98c88bf0b07447248d4afae71 (patch) | |
tree | 5b02599884dbf0f671195084adc0a4b2fe252cd2 | |
parent | fa9b5c6be7d76d589878994f6affb15b73739dda (diff) | |
download | gcc-c70ebb687c8bf3e98c88bf0b07447248d4afae71.zip gcc-c70ebb687c8bf3e98c88bf0b07447248d4afae71.tar.gz gcc-c70ebb687c8bf3e98c88bf0b07447248d4afae71.tar.bz2 |
elfos.h (SELECT_SECTION): Don't check TREE_READONLY for CONSTRUCTOR.
* config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
for CONSTRUCTOR.
From-SVN: r47357
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/elfos.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 665e706..35e5148 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-11-26 Richard Henderson <rth@redhat.com> + + * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY + for CONSTRUCTOR. + 2001-11-26 David Edelsohn <edelsohn@gnu.org> * rs6000.c (output_mi_thunk): Handle minimal-toc and call diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index e6b36a7..a5c7a71 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -387,7 +387,7 @@ const_section () \ else if (TREE_CODE (DECL) == CONSTRUCTOR) \ { \ if ((flag_pic && RELOC) \ - || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \ + || TREE_SIDE_EFFECTS (DECL) \ || ! TREE_CONSTANT (DECL)) \ data_section (); \ else \ |