Don't preprocess .S files with -P on Solaris/x86 (PR target/85994)
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 22 Jun 2018 06:19:14 +0000 (06:19 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 22 Jun 2018 06:19:14 +0000 (06:19 +0000)
PR target/85994
* config/i386/sol2.h (CPP_SPEC): Don't pass -P for
-x assembler-with-cpp.

From-SVN: r261880

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

index 21fc3bf6ee42c743244fceff0b82038e9c061b8c..6660f16f589ef905d58ec8993e1f14088fb30b81 100644 (file)
@@ -1,3 +1,9 @@
+2018-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR target/85994
+       * config/i386/sol2.h (CPP_SPEC): Don't pass -P for
+       -x assembler-with-cpp.
+
 2018-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
index 41048d23776e04b0bdba02f3f28ff51d7f4bef91..3491f45f75d082b05e877c4b4fb22e4d7d9c1055 100644 (file)
@@ -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.  */