]> gcc.gnu.org Git - gcc.git/commitdiff
spu.c (spu_override_options): Default to -mno-safe-hints when building for the celled...
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 12 Sep 2008 13:26:00 +0000 (13:26 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Fri, 12 Sep 2008 13:26:00 +0000 (13:26 +0000)
* config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
when building for the celledp architecture.

From-SVN: r140316

gcc/ChangeLog
gcc/config/spu/spu.c

index 5e66ff672d6bdbe744c15e6633d597e276f590ff..653dc51e0592a0780879dfba28245875c65f3109 100644 (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.
index 35a04a7a820dc44e941425f9a378931628ccc777..e3781d5c8a16c1293ae194ab4e35d7586a9490f2 100644 (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;
 }
 \f
This page took 0.11814 seconds and 5 git commands to generate.