From: Rainer Orth Date: Fri, 22 Jun 2018 06:19:14 +0000 (+0000) Subject: Don't preprocess .S files with -P on Solaris/x86 (PR target/85994) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=635b738209f66b9305e8f56de4e168e08c57ee62;p=gcc.git Don't preprocess .S files with -P on Solaris/x86 (PR target/85994) PR target/85994 * config/i386/sol2.h (CPP_SPEC): Don't pass -P for -x assembler-with-cpp. From-SVN: r261880 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 21fc3bf6ee4..6660f16f589 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-06-22 Rainer Orth + + PR target/85994 + * config/i386/sol2.h (CPP_SPEC): Don't pass -P for + -x assembler-with-cpp. + 2018-06-22 Rainer Orth * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h index 41048d23776..3491f45f75d 100644 --- a/gcc/config/i386/sol2.h +++ b/gcc/config/i386/sol2.h @@ -51,9 +51,8 @@ along with GCC; see the file COPYING3. If not see #undef TARGET_SUN_TLS #define TARGET_SUN_TLS 1 -/* Solaris 2/Intel as chokes on #line directives before Solaris 10. */ #undef CPP_SPEC -#define CPP_SPEC "%{,assembler-with-cpp:-P} %(cpp_subtarget)" +#define CPP_SPEC "%(cpp_subtarget)" /* GNU as understands --32 and --64, but the native Solaris assembler requires -xarch=generic or -xarch=generic64 instead. */