Index: ChangeLog
authorGeoffrey Keating <geoffk@apple.com>
Wed, 7 Apr 2004 20:47:52 +0000 (20:47 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Wed, 7 Apr 2004 20:47:52 +0000 (20:47 +0000)
2004-04-06  Geoffrey Keating  <geoffk@apple.com>

* c-common.h (pending_lang_change): Mark for PCH.

Index: testsuite/ChangeLog
2004-04-06  Geoffrey Keating  <geoffk@apple.com>

* g++.dg/pch/externc-1.Hs: New.
* g++.dg/pch/externc-1.C: New.

From-SVN: r80484

gcc/ChangeLog
gcc/c-common.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pch/externc-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/pch/externc-1.Hs [new file with mode: 0644]

index a2586eb44d3665e5773e3698c399b0be8265e7ae..b2be14540c9269db4209fd52a6e0d06fca5dbdb2 100644 (file)
@@ -1,3 +1,7 @@
+2004-04-06  Geoffrey Keating  <geoffk@apple.com>
+
+       * c-common.h (pending_lang_change): Mark for PCH.
+
 2004-04-07  Caroline Tice  <ctice@apple.com>
 
        * gcc.c (main): Move 'break' in main loops (on an error)
index 4326a59480f35e2c33c4a2911590e4318c664949..6e9099a38757820a4b3f22171c37d6e27f84da87 100644 (file)
@@ -1271,7 +1271,7 @@ extern void c_cpp_builtins (cpp_reader *);
 
 /* Positive if an implicit `extern "C"' scope has just been entered;
    negative if such a scope has just been exited.  */
-extern int pending_lang_change;
+extern GTY(()) int pending_lang_change;
 
 /* Information recorded about each file examined during compilation.  */
 
index 9bff30fef3a503e6c747f05eff636bece97bde41..aebaa9393132499a58f0f4702ee61752ddb84201 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-06  Geoffrey Keating  <geoffk@apple.com>
+
+       * g++.dg/pch/externc-1.Hs: New.
+       * g++.dg/pch/externc-1.C: New.
+
 2004-04-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * gcc.dg/compat/struct-by-value-5a_main.c,
diff --git a/gcc/testsuite/g++.dg/pch/externc-1.C b/gcc/testsuite/g++.dg/pch/externc-1.C
new file mode 100644 (file)
index 0000000..d097809
--- /dev/null
@@ -0,0 +1,6 @@
+#include "externc-1.H"
+
+template <typename X> struct foo 
+{
+  X y;
+}
diff --git a/gcc/testsuite/g++.dg/pch/externc-1.Hs b/gcc/testsuite/g++.dg/pch/externc-1.Hs
new file mode 100644 (file)
index 0000000..21aaf74
--- /dev/null
@@ -0,0 +1 @@
+#include <stddef.h>