From 0280f58ca91700e4e898ce0120953bb3d4b920b1 Mon Sep 17 00:00:00 2001 From: ro Date: Fri, 22 Jun 2018 06:19:14 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261880 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/sol2.h | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 21fc3bf6ee42..6660f16f589e 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 41048d23776e..3491f45f75d0 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. */ -- 2.47.2