when building for the celledp architecture.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140316
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
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;
}
\f