re PR preprocessor/48248 (Wrong error message location when compiling preprocessed...
authorJakub Jelinek <jakub@redhat.com>
Tue, 29 Mar 2011 20:25:27 +0000 (22:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 29 Mar 2011 20:25:27 +0000 (22:25 +0200)
commit22d17b1c681199b6bd0380010c56cddbb6b8d96b
tree694aa89b38234a2bb9ee479d1fa7c3bde396a87e
parent5d9cd5d0a712de44cb61dd809a525b7d16359ec7
re PR preprocessor/48248 (Wrong error message location when compiling preprocessed code)

PR preprocessor/48248
* c-ppoutput.c (print): Add src_file field.
(init_pp_output): Initialize it.
(maybe_print_line): Don't optimize by adding up to 8 newlines
if map->to_file and print.src_file are different file.
(print_line): Update print.src_file.

From-SVN: r171693
gcc/ChangeLog
gcc/c-family/c-ppoutput.c