diff options
Diffstat (limited to 'gcc/config/spu')
-rw-r--r-- | gcc/config/spu/spu.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; } |