aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-09-12 13:26:00 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2008-09-12 13:26:00 +0000
commit59dbe4fef06b1690567719388feb11f2e3658e9c (patch)
treef158d5f4d0462b7ee83db48c94990029173cacdf
parent2944258965f5bb918cccbab259fdac072abfd8a7 (diff)
downloadgcc-59dbe4fef06b1690567719388feb11f2e3658e9c.zip
gcc-59dbe4fef06b1690567719388feb11f2e3658e9c.tar.gz
gcc-59dbe4fef06b1690567719388feb11f2e3658e9c.tar.bz2
spu.c (spu_override_options): Default to -mno-safe-hints when building for the celledp architecture.
* config/spu/spu.c (spu_override_options): Default to -mno-safe-hints when building for the celledp architecture. From-SVN: r140316
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/spu/spu.c10
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5e66ff6..653dc51 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
+ when building for the celledp architecture.
+
2008-09-12 Richard Guenther <rguenther@suse.de>
* tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c
index 35a04a7..e3781d5 100644
--- a/gcc/config/spu/spu.c
+++ b/gcc/config/spu/spu.c
@@ -390,6 +390,16 @@ spu_override_options (void)
error ("Unknown architecture '%s'", &spu_tune_string[0]);
}
+ /* Change defaults according to the processor architecture. */
+ if (spu_arch == PROCESSOR_CELLEDP)
+ {
+ /* If no command line option has been otherwise specified, change
+ the default to -mno-safe-hints on celledp -- only the original
+ Cell/B.E. processors require this workaround. */
+ if (!(target_flags_explicit & MASK_SAFE_HINTS))
+ target_flags &= ~MASK_SAFE_HINTS;
+ }
+
REAL_MODE_FORMAT (SFmode) = &spu_single_format;
}