From 6b5b4e9cece66553b75c1c8c9e7ecae6c8b27bb0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 11 Jan 2017 19:08:57 +0100 Subject: 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 --- gcc/c/c-decl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/c/c-decl.c') diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index a15903a..2f91e70 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -1420,6 +1420,8 @@ pop_file_scope (void) if (pch_file) { c_common_write_pch (); + /* Ensure even the callers don't try to finalize the CU. */ + flag_syntax_only = 1; return; } -- cgit v1.1