This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[incremental] Patch: FYI: initial PCH fix


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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]