This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PCH] Add built_in_decls as a root
- From: Geoffrey Keating <gkeating at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 24 Dec 2002 21:32:28 -0800 (PST)
- Subject: [PCH] Add built_in_decls as a root
This caused a failure when printf() was used in a C++ program. It's
hard to create a small testcase for it.
Bootstrap & test on powerpc-darwin in progress.
--
- Geoffrey Keating <geoffk@apple.com>
===File ~/patches/pchbranch-builtindecls.patch==============
2002-12-24 Geoffrey Keating <geoffk@apple.com>
* tree.h (built_in_decls): Mark for PCH.
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.299.2.23
diff -u -p -u -p -r1.299.2.23 tree.h
--- tree.h 24 Dec 2002 02:06:59 -0000 1.299.2.23
+++ tree.h 25 Dec 2002 05:29:20 -0000
@@ -98,7 +98,7 @@ enum built_in_function
extern const char *const built_in_names[(int) END_BUILTINS];
/* An array of _DECL trees for the above. */
-extern tree built_in_decls[(int) END_BUILTINS];
+extern GTY(()) tree built_in_decls[(int) END_BUILTINS];
/* The definition of tree nodes fills the next several pages. */
============================================================