Reject -mx32 on Solaris/x86
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 20 May 2019 11:26:43 +0000 (11:26 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 20 May 2019 11:26:43 +0000 (11:26 +0000)
* config/i386/sol2.h (CC1_SPEC): Reject -mx32.

From-SVN: r271411

gcc/ChangeLog
gcc/config/i386/sol2.h

index 2852bf4..e7b9ab2 100644 (file)
@@ -1,5 +1,9 @@
 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
+       * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
+
+2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
        * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
        (LIBLSAN_EARLY_SPEC): Likewise.
        * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
index f31943a..4ef0ff4 100644 (file)
@@ -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.  */