aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2004-04-07 20:47:52 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2004-04-07 20:47:52 +0000
commit7876228d901afdd0ee62d6dfcdd87dd4d4c5f748 (patch)
tree1eb78265acf0ce01d180f25952f8073c3375a082 /gcc
parentb21292d0bdd6529a63da68ae0798e300c17638e2 (diff)
downloadgcc-7876228d901afdd0ee62d6dfcdd87dd4d4c5f748.zip
gcc-7876228d901afdd0ee62d6dfcdd87dd4d4c5f748.tar.gz
gcc-7876228d901afdd0ee62d6dfcdd87dd4d4c5f748.tar.bz2
Index: ChangeLog
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-common.h2
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/pch/externc-1.C6
-rw-r--r--gcc/testsuite/g++.dg/pch/externc-1.Hs1
5 files changed, 17 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a2586eb..b2be145 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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)
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 4326a59..6e9099a 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -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. */
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9bff30f..aebaa93 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..d097809
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pch/externc-1.C
@@ -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
index 0000000..21aaf74
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pch/externc-1.Hs
@@ -0,0 +1 @@
+#include <stddef.h>