aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lang-specs.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2016-07-04 07:41:32 +0000
committerJan Beulich <jbeulich@gcc.gnu.org>2016-07-04 07:41:32 +0000
commit793350758c5c88b29b1c9459f3b3fb1bb00bc0c0 (patch)
treef8b49d82d85f4ae0e59c56067b88910af9eb7702 /gcc/cp/lang-specs.h
parentb32086d3f0e778eacedca4bdfb2d6a1b8ea20a34 (diff)
downloadgcc-793350758c5c88b29b1c9459f3b3fb1bb00bc0c0.zip
gcc-793350758c5c88b29b1c9459f3b3fb1bb00bc0c0.tar.gz
gcc-793350758c5c88b29b1c9459f3b3fb1bb00bc0c0.tar.bz2
fix interaction of -S and -x {c,c++}-header
Irrespective of the use of -o this so far resulted in "error: output filename specified twice", since cc1_options already produces a -o option when -S was specified. gcc/ 2016-07-04 Jan Beulich <jbeulich@suse.com> * gcc.c (default_compilers["@c-header"]): Conditionalize "-o". gcc/cp/ 2016-07-04 Jan Beulich <jbeulich@suse.com> * lang-specs.h ("@c++-header"): Conditionalize "-o". gcc/testsuite/ 2016-07-04 Jan Beulich <jbeulich@suse.com> * g++.dg/header.c: New. * gcc.dg/header.c: New. From-SVN: r237955
Diffstat (limited to 'gcc/cp/lang-specs.h')
-rw-r--r--gcc/cp/lang-specs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h
index 9707fac..9217950 100644
--- a/gcc/cp/lang-specs.h
+++ b/gcc/cp/lang-specs.h
@@ -47,7 +47,7 @@ along with GCC; see the file COPYING3. If not see
cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}\
%{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}\
%(cc1_options) %2\
- %{!fsyntax-only:-o %g.s \
+ %{!fsyntax-only:%{!S:-o %g.s} \
%{!fdump-ada-spec*:%{!o*:--output-pch=%i.gch}\
%W{o*:--output-pch=%*}}%V}}}}",
CPLUSPLUS_CPP_SPEC, 0, 0},