difference, but I can't reproduce the original problem. CCing
Eric who has managed to reproduce it on Solaris.
Ok for trunk?
2010-12-17 Jakub Jelinek <jakub@redhat.com>
PR preprocessor/39213
* traditional.c (_cpp_scan_out_logical_line): Don't call
_cpp_process_line_notes if pfile->overlaid_buffer.
@@ -1,5 +1,5 @@
/* CPP Library - traditional lexical analysis and macro expansion.
- Copyright (C) 2002, 2004, 2005, 2007, 2008, 2009
+ Copyright (C) 2002, 2004, 2005, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Contributed by Neil Booth, May 2002
@@ -378,7 +378,8 @@ _cpp_scan_out_logical_line (cpp_reader *
for (;;)
{
if (!context->prev
- && cur >= pfile->buffer->notes[pfile->buffer->cur_note].pos)
+ && cur >= pfile->buffer->notes[pfile->buffer->cur_note].pos
+ && !pfile->overlaid_buffer)
{
pfile->buffer->cur = cur;
_cpp_process_line_notes (pfile, false);