aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2011-10-14 23:02:40 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-10-14 23:02:40 +0000
commit034e3eb0ca49f017643f083d38581ecd62d4a86c (patch)
treecdecbb5583ce31f09cd76200ef7b0fba5b6b57ea /gcc
parentf11502ac2b4a79664aacc92b93ccd0bdccc2db71 (diff)
downloadgcc-034e3eb0ca49f017643f083d38581ecd62d4a86c.zip
gcc-034e3eb0ca49f017643f083d38581ecd62d4a86c.tar.gz
gcc-034e3eb0ca49f017643f083d38581ecd62d4a86c.tar.bz2
re PR target/50354 (architecture mismatch between compiler and assembler)
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. From-SVN: r180013
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog13
-rw-r--r--gcc/config/sparc/linux64.h4
2 files changed, 16 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7a16ed7..b463a08 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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{}.
@@ -252,6 +258,13 @@
* 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
diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h
index 3c83d2d..b87116a 100644
--- a/gcc/config/sparc/linux64.h
+++ b/gcc/config/sparc/linux64.h
@@ -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 + \