* c-pch.c (c_common_read_pch): Save and restore
line_table->trace_includes across PCH restore.
* gcc.dg/pch/cpp-3.c: New test.
* gcc.dg/pch/cpp-3.hs: New file.
* gcc.dg/pch/cpp-3a.h: New file.
* gcc.dg/pch/cpp-3b.h: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138360
138bc75d-0d04-0410-961f-
82ee72b054a4
+2008-07-31 Jakub Jelinek <jakub@redhat.com>
+
+ PR preprocessor/36649
+ * c-pch.c (c_common_read_pch): Save and restore
+ line_table->trace_includes across PCH restore.
+
2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
PR ada/36554
2008-07-30 Rafael Avila de Espindola <espindola@google.com>
PR 36974
- * final.c (call_from_call_insn): Handle COND_EXEC
+ * final.c (call_from_call_insn): Handle COND_EXEC.
2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
struct c_pch_header h;
struct save_macro_data *smd;
expanded_location saved_loc;
+ bool saved_trace_includes;
f = fdopen (fd, "rb");
if (f == NULL)
/* Save the location and then restore it after reading the PCH. */
saved_loc = expand_location (line_table->highest_line);
+ saved_trace_includes = line_table->trace_includes;
cpp_prepare_state (pfile, &smd);
fclose (f);
+ line_table->trace_includes = saved_trace_includes;
cpp_set_line_map (pfile, line_table);
linemap_add (line_table, LC_RENAME, 0, saved_loc.file, saved_loc.line);
+2008-07-31 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/36278
+ * g++.dg/debug/namespace2.C: New test.
+
2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/boolean_expr.ad[sb]: New test.
--- /dev/null
+/* PR preprocessor/36649 */
+/* { dg-do compile } */
+/* { dg-options "-H -I." } */
+/* { dg-message "cpp-3.h\[^\n\]*(\n\[^\n\]*cpp-3.c)?\n\[^\n\]*cpp-3a.h\n\[^\n\]*cpp-3b.h" "" { target *-*-* } 0 } */
+
+#include "cpp-3.h"
+#include "cpp-3a.h"
+
+int
+main (void)
+{
+ return 0;
+}
--- /dev/null
+/* empty */
--- /dev/null
+#include "cpp-3b.h"
--- /dev/null
+/* empty */