aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2002-11-20 00:50:33 +0000
committerGeoffrey Keating <geoffk@apple.com>2002-11-20 00:50:33 +0000
commit451635a39662f8d39e24a870aef8a1a4478b7e87 (patch)
tree4a33fdfbea646ea96c44a64130aa2b00097ebaef
parentf0086fa6bf605239619bb9d3fa9bcf3c594a128c (diff)
Index: ChangeLog
2002-11-19 Geoffrey Keating <geoffk@apple.com> * function.c (funcdef_no): Mark to be saved in a PCH. Index: cp/ChangeLog 2002-11-19 Geoffrey Keating <geoffk@apple.com> * decl.c (anon_cnt): Mark to be saved for PCH. Index: testsuite/ChangeLog 2002-11-19 Geoffrey Keating <geoffk@apple.com> * gcc.dg/pch/except-1.h: New. * gcc.dg/pch/except-1.c: New. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/pch-branch@59283 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c2
-rw-r--r--gcc/function.c2
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/pch/except-1.c7
-rw-r--r--gcc/testsuite/gcc.dg/pch/except-1.h6
7 files changed, 28 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e7cb3779153..d533e29a942 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-19 Geoffrey Keating <geoffk@apple.com>
+
+ * function.c (funcdef_no): Mark to be saved in a PCH.
+
2002-11-15 Geoffrey Keating <geoffk@apple.com>
* ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 95932ca07f4..232aded2388 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-19 Geoffrey Keating <geoffk@apple.com>
+
+ * decl.c (anon_cnt): Mark to be saved for PCH.
+
2002-10-25 Geoffrey Keating <geoffk@apple.com>
* lex.c (init_reswords): Delete now-untrue comment.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 9ee055679ff..13e1814a807 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -2813,7 +2813,7 @@ pushtag (name, type, globalize)
/* Counter used to create anonymous type names. */
-static int anon_cnt = 0;
+static GTY(()) int anon_cnt;
/* Return an IDENTIFIER which can be used as a name for
anonymous structs and unions. */
diff --git a/gcc/function.c b/gcc/function.c
index 0c066ed0358..3e482a04c9d 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -123,7 +123,7 @@ int current_function_uses_only_leaf_regs;
int virtuals_instantiated;
/* Assign unique numbers to labels generated for profiling, debugging, etc. */
-static int funcdef_no;
+static GTY(()) int funcdef_no;
/* These variables hold pointers to functions to create and destroy
target specific, per-function data structures. */
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 025e433f938..d320a216989 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-19 Geoffrey Keating <geoffk@apple.com>
+
+ * gcc.dg/pch/except-1.h: New.
+ * gcc.dg/pch/except-1.c: New.
+
2002-11-13 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/pch/pch.exp: Ensure that <test>.hp doesn't exist before
diff --git a/gcc/testsuite/gcc.dg/pch/except-1.c b/gcc/testsuite/gcc.dg/pch/except-1.c
new file mode 100644
index 00000000000..0332609de2d
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pch/except-1.c
@@ -0,0 +1,7 @@
+/* { dg-options "-fexceptions -I." } */
+#include "except-1.hp"
+
+int main(void)
+{
+ return foo(1);
+}
diff --git a/gcc/testsuite/gcc.dg/pch/except-1.h b/gcc/testsuite/gcc.dg/pch/except-1.h
new file mode 100644
index 00000000000..33a893d1533
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pch/except-1.h
@@ -0,0 +1,6 @@
+/* { dg-options "-fexceptions" } */
+extern inline int
+foo(int a)
+{
+ return a + 1;
+}