This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[incremental] Patch: FYI: initial PCH fix
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 17 Dec 2007 18:15:18 -0700
- Subject: [incremental] Patch: FYI: initial PCH fix
- Reply-to: Tom Tromey <tromey at redhat dot com>
I'm checking this in on the incremental-compiler branch.
This makes most of the PCH tests pass. I didn't know it, but when I
split c_write_global_declarations, I needed to preserve the pch_file
early return.
The remaining PCH failures seem to be related to dwarf output.
Tom
ChangeLog:
2007-12-17 Tom Tromey <tromey@redhat.com>
* c-decl.c (c_write_global_declarations): Return early if making a
PCH file.
Index: c-decl.c
===================================================================
--- c-decl.c (revision 131024)
+++ c-decl.c (working copy)
@@ -8176,8 +8176,10 @@
tree t;
/* Don't waste time on further processing if -fsyntax-only or we've
- encountered errors. */
- if (flag_syntax_only || errorcount || sorrycount || cpp_errors (parse_in))
+ encountered errors. If we are generating a PCH file, then we
+ don't want to do this either. */
+ if (flag_syntax_only || errorcount || sorrycount || cpp_errors (parse_in)
+ || pch_file)
return;
/* Process all file scopes in this compilation, and the external_scope,