aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2018-06-22 06:19:14 +0000
committerRainer Orth <ro@gcc.gnu.org>2018-06-22 06:19:14 +0000
commit635b738209f66b9305e8f56de4e168e08c57ee62 (patch)
tree4a08dbd5b06147a31fb523d718682cbdbefb994a /gcc
parenta634048e19bd1fc8d6c9389cd7b053d1783af4f8 (diff)
downloadgcc-635b738209f66b9305e8f56de4e168e08c57ee62.zip
gcc-635b738209f66b9305e8f56de4e168e08c57ee62.tar.gz
gcc-635b738209f66b9305e8f56de4e168e08c57ee62.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/sol2.h3
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 21fc3bf..6660f16 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
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
_FILE_OFFSET_BITS=64 for C++.
diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h
index 41048d2..3491f45 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. */