This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/48248] [4.5/4.6/4.7 Regression] Wrong error message location when compiling preprocessed code
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Mar 2011 20:25:54 +0000
- Subject: [Bug preprocessor/48248] [4.5/4.6/4.7 Regression] Wrong error message location when compiling preprocessed code
- Auto-submitted: auto-generated
- References: <bug-48248-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48248
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-29 20:25:32 UTC ---
Author: jakub
Date: Tue Mar 29 20:25:27 2011
New Revision: 171693
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171693
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/c-ppoutput.c