aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
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 /gcc/config
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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/spu/spu.c10
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;
}