From 7876228d901afdd0ee62d6dfcdd87dd4d4c5f748 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Wed, 7 Apr 2004 20:47:52 +0000 Subject: [PATCH] Index: ChangeLog 2004-04-06 Geoffrey Keating * c-common.h (pending_lang_change): Mark for PCH. Index: testsuite/ChangeLog 2004-04-06 Geoffrey Keating * g++.dg/pch/externc-1.Hs: New. * g++.dg/pch/externc-1.C: New. From-SVN: r80484 --- gcc/ChangeLog | 4 ++++ gcc/c-common.h | 2 +- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/pch/externc-1.C | 6 ++++++ gcc/testsuite/g++.dg/pch/externc-1.Hs | 1 + 5 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/g++.dg/pch/externc-1.C create mode 100644 gcc/testsuite/g++.dg/pch/externc-1.Hs diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2586eb44d3..b2be14540c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-04-06 Geoffrey Keating + + * c-common.h (pending_lang_change): Mark for PCH. + 2004-04-07 Caroline Tice * gcc.c (main): Move 'break' in main loops (on an error) diff --git a/gcc/c-common.h b/gcc/c-common.h index 4326a59480f..6e9099a3875 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 9bff30fef3a..aebaa939313 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-04-06 Geoffrey Keating + + * g++.dg/pch/externc-1.Hs: New. + * g++.dg/pch/externc-1.C: New. + 2004-04-06 Kaveh R. Ghazi * 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 00000000000..d0978092cac --- /dev/null +++ b/gcc/testsuite/g++.dg/pch/externc-1.C @@ -0,0 +1,6 @@ +#include "externc-1.H" + +template 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 00000000000..21aaf7436eb --- /dev/null +++ b/gcc/testsuite/g++.dg/pch/externc-1.Hs @@ -0,0 +1 @@ +#include -- 2.30.2