------- Comment #4 from tromey at gcc dot gnu dot org 2009-03-30 23:22 -------
Try this.
I'll submit it if it regression tests ok.
Index: c-ppoutput.c
===================================================================
--- c-ppoutput.c (revision 145295)
+++ c-ppoutput.c (working copy)
@@ -377,6 +380,8 @@
static void
cb_define (cpp_reader *pfile, source_location line, cpp_hashnode *node)
{
+ if (line <= BUILTINS_LOCATION)
+ return;
maybe_print_line (line);
fputs ("#define ", print.outf);
@@ -396,6 +401,8 @@
cb_undef (cpp_reader *pfile ATTRIBUTE_UNUSED, source_location line,
cpp_hashnode *node)
{
+ if (line <= BUILTINS_LOCATION)
+ return;
maybe_print_line (line);
fprintf (print.outf, "#undef %s\n", NODE_NAME (node));
print.src_line++;
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37549