This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, spu]: use -mno-safe-hints by default on celledp
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: pinskia at gmail dot com, trevor_smigiel at playstation dot sony dot com, saliu at de dot ibm dot com
- Date: Fri, 31 Aug 2007 14:23:45 +1000
- Subject: [PATCH, spu]: use -mno-safe-hints by default on celledp
I am submitting the following patch for Sa Liu, who authored the patch.
It has been well tested in our internal tree. Okay for mainline?
2007-08-31 Sa Liu <saliu@de.ibm.com>
* config/spu/spu.c (spu_override_options): Use -mno-safe-hints on
celledp by default.
Index: config/spu/spu.c
===================================================================
--- config/spu/spu.c (revision 127950)
+++ config/spu/spu.c (working copy)
@@ -315,7 +315,13 @@ spu_override_options (void)
if (strcmp (&spu_arch_string[0], "cell") == 0)
spu_arch = PROCESSOR_CELL;
else if (strcmp (&spu_arch_string[0], "celledp") == 0)
- spu_arch = PROCESSOR_CELLEDP;
+ {
+ spu_arch = PROCESSOR_CELLEDP;
+
+ /* Use -mno-safe-hints on celledp by default. */
+ if (! (target_flags_explicit & MASK_SAFE_HINTS))
+ target_flags &= ~MASK_SAFE_HINTS;
+ }
else
error ("Unknown architecture '%s'", &spu_arch_string[0]);
}