summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-30 16:43:19 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-30 16:43:19 +0000
commitc5a1dba275e6ebfde518b0a67cf13954c0c3637f (patch)
treedb51e7d875a4aaa7e93803655fbb8d9d0e260213
parent50fad245f5745e689f922673565bd85dddc091b2 (diff)
downloadppe42-gcc-c5a1dba275e6ebfde518b0a67cf13954c0c3637f.tar.gz
ppe42-gcc-c5a1dba275e6ebfde518b0a67cf13954c0c3637f.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127928 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/rs6000/rs6000.c12
2 files changed, 13 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f706cff5993..3c3a291c533 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 0af3f698d17..010b532993e 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;
OpenPOWER on IntegriCloud