diff options
author | Jan Beulich <jbeulich@suse.com> | 2016-07-04 07:41:32 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@gcc.gnu.org> | 2016-07-04 07:41:32 +0000 |
commit | 793350758c5c88b29b1c9459f3b3fb1bb00bc0c0 (patch) | |
tree | f8b49d82d85f4ae0e59c56067b88910af9eb7702 /gcc/gcc.c | |
parent | b32086d3f0e778eacedca4bdfb2d6a1b8ea20a34 (diff) | |
download | gcc-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/gcc.c')
-rw-r--r-- | gcc/gcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1330,7 +1330,7 @@ static const struct compiler default_compilers[] = %W{o*:--output-pch=%*}}%V}}\ %{!save-temps*:%{!traditional-cpp:%{!no-integrated-cpp:\ cc1 %(cpp_unique_options) %(cc1_options)\ - %{!fsyntax-only:-o %g.s \ + %{!fsyntax-only:%{!S:-o %g.s} \ %{!fdump-ada-spec*:%{!o*:--output-pch=%i.gch}\ %W{o*:--output-pch=%*}}%V}}}}}}}", 0, 0, 0}, {".i", "@cpp-output", 0, 0, 0}, |