aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-01-11 19:08:57 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-01-11 19:08:57 +0100
commit6b5b4e9cece66553b75c1c8c9e7ecae6c8b27bb0 (patch)
tree2109afc3a333ad8071e197af4935c56bde8a372a /gcc/gcc.c
parent25e15acf8cf0b7dc54367cb491c5f2d772199efb (diff)
downloadgcc-6b5b4e9cece66553b75c1c8c9e7ecae6c8b27bb0.zip
gcc-6b5b4e9cece66553b75c1c8c9e7ecae6c8b27bb0.tar.gz
gcc-6b5b4e9cece66553b75c1c8c9e7ecae6c8b27bb0.tar.bz2
re PR c++/72813 (atomic header cannot be compiled into translation unit with -fkeep-inline-functions)
PR c++/72813 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps of c-header. * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing PCH file. * decl2.c (c_parse_final_cleanups): Set flag_syntax_only to 1 after writing PCH file. From-SVN: r244328
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 98568bc..1c5e428 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1328,7 +1328,7 @@ static const struct compiler default_compilers[] =
%(cpp_options) -o %{save-temps*:%b.i} %{!save-temps*:%g.i} \n\
cc1 -fpreprocessed %{save-temps*:%b.i} %{!save-temps*:%g.i} \
%(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}}\
%{!save-temps*:%{!traditional-cpp:%{!no-integrated-cpp:\