diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-08-30 18:43:19 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2007-08-30 18:43:19 +0200 |
commit | ca2ba153a602f34f2bfc76b106345c9fe7aa21f0 (patch) | |
tree | db51e7d875a4aaa7e93803655fbb8d9d0e260213 /gcc | |
parent | af947da7a78ce3393b3aab0184170b2164062fab (diff) | |
download | gcc-ca2ba153a602f34f2bfc76b106345c9fe7aa21f0.zip gcc-ca2ba153a602f34f2bfc76b106345c9fe7aa21f0.tar.gz gcc-ca2ba153a602f34f2bfc76b106345c9fe7aa21f0.tar.bz2 |
re PR target/33168 (GCC Boot failure, building libstc++)
PR target/33168
* config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
true if any of the compare_section_name calls returned true,
rather than if any returned false.
From-SVN: r127928
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 12 |
2 files changed, 13 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f706cff..3c3a291 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2007-08-30 Jakub Jelinek <jakub@redhat.com> + + PR target/33168 + * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return + true if any of the compare_section_name calls returned true, + rather than if any returned false. + 2007-08-30 Richard Guenther <rguenther@suse.de> PR tree-optimization/33199 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 0af3f69..010b532 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -19263,12 +19263,12 @@ rs6000_elf_in_small_data_p (const_tree decl) if (TREE_CODE (decl) == VAR_DECL && DECL_SECTION_NAME (decl)) { const char *section = TREE_STRING_POINTER (DECL_SECTION_NAME (decl)); - if (compare_section_name (section, ".sdata") == 0 - || compare_section_name (section, ".sdata2") == 0 - || compare_section_name (section, ".gnu.linkonce.s") == 0 - || compare_section_name (section, ".sbss") == 0 - || compare_section_name (section, ".sbss2") == 0 - || compare_section_name (section, ".gnu.linkonce.sb") == 0 + if (compare_section_name (section, ".sdata") + || compare_section_name (section, ".sdata2") + || compare_section_name (section, ".gnu.linkonce.s") + || compare_section_name (section, ".sbss") + || compare_section_name (section, ".sbss2") + || compare_section_name (section, ".gnu.linkonce.sb") || strcmp (section, ".PPC.EMB.sdata0") == 0 || strcmp (section, ".PPC.EMB.sbss0") == 0) return true; |