aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sparc/linux64.h
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/config/sparc/linux64.h
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/config/sparc/linux64.h')
-rw-r--r--gcc/config/sparc/linux64.h4
1 files changed, 3 insertions, 1 deletions
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 + \