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
This commit is contained in:
Ulrich Weigand 2008-09-12 13:26:00 +00:00 committed by Ulrich Weigand
parent 2944258965
commit 59dbe4fef0
2 changed files with 15 additions and 0 deletions

View File

@ -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.

View File

@ -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;
}