PR target/50354
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Oct 2011 23:02:40 +0000 (23:02 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Oct 2011 23:02:40 +0000 (23:02 +0000)
* config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
processor is at least V9 and TARGET_64BIT_DEFAULT is defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180013 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/linux64.h

index 7a16ed7..b463a08 100644 (file)
@@ -1,3 +1,9 @@
+2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR target/50354
+       * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
+       processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
+
 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * invoke.texi (AVR Options): Avoid \leq{}.
        * lto-streamer-out.c (lto_output_location): Use
        streamer_hooks.output_location, if set.
 
+2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * doc/invoke.texi (SPARC options): Document -mfix-at697f.
+       * config/sparc/sparc.opt (mfix-at697f): New option.
+       * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
+       (sparc_reorg): New function.
+
 2011-10-13  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/50712
index 3c83d2d..b87116a 100644 (file)
@@ -31,7 +31,9 @@ along with GCC; see the file COPYING3.  If not see
     }                                          \
   while (0)
 
-#ifdef TARGET_64BIT_DEFAULT
+/* On Linux, the combination sparc64-* --with-cpu=v8 is supported and
+   selects a 32-bit compiler.  */
+#if defined(TARGET_64BIT_DEFAULT) && TARGET_CPU_DEFAULT >= TARGET_CPU_v9
 #undef TARGET_DEFAULT
 #define TARGET_DEFAULT \
   (MASK_V9 + MASK_PTR64 + MASK_64BIT + MASK_STACK_BIAS + \