diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-01-11 19:08:57 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-01-11 19:08:57 +0100 |
commit | 6b5b4e9cece66553b75c1c8c9e7ecae6c8b27bb0 (patch) | |
tree | 2109afc3a333ad8071e197af4935c56bde8a372a /gcc/cp/decl2.c | |
parent | 25e15acf8cf0b7dc54367cb491c5f2d772199efb (diff) | |
download | gcc-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/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 435f51f..0a4c567 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -4461,6 +4461,8 @@ c_parse_final_cleanups (void) DECL_ASSEMBLER_NAME (node->decl); c_common_write_pch (); dump_tu (); + /* Ensure even the callers don't try to finalize the CU. */ + flag_syntax_only = 1; return; } |