From eefa592aa0b0e0ba9f144ede15389cbf7496cc64 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Mon, 20 May 2019 11:26:43 +0000 Subject: [PATCH] Reject -mx32 on Solaris/x86 * config/i386/sol2.h (CC1_SPEC): Reject -mx32. From-SVN: r271411 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/sol2.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2852bf4ab3a..e7b9ab2de09 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-05-20 Rainer Orth + + * config/i386/sol2.h (CC1_SPEC): Reject -mx32. + 2019-05-20 Rainer Orth * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e. diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h index f31943a5118..4ef0ff4b009 100644 --- a/gcc/config/i386/sol2.h +++ b/gcc/config/i386/sol2.h @@ -55,7 +55,8 @@ along with GCC; see the file COPYING3. If not see #define CPP_SPEC "%(cpp_subtarget)" #undef CC1_SPEC -#define CC1_SPEC "%(cc1_cpu) " ASAN_CC1_SPEC +#define CC1_SPEC "%(cc1_cpu) " ASAN_CC1_SPEC \ + " %{mx32:%e-mx32 is not supported on Solaris}" /* GNU as understands --32 and --64, but the native Solaris assembler requires -xarch=generic or -xarch=generic64 instead. */ -- 2.30.2