re PR preprocessor/48248 (Wrong error message location when compiling preprocessed code)

2011-04-26  Richard Guenther  <rguenther@suse.de>

	PR preprocessor/48248
	* c-ppoutput.c (maybe_print_line): Always optimize newlines
	for output size with -P.

From-SVN: r172959
This commit is contained in:
Richard Guenther 2011-04-26 10:14:34 +00:00 committed by Richard Biener
parent e73a83fc7c
commit 304dfbe364
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-04-26 Richard Guenther <rguenther@suse.de>
PR preprocessor/48248
* c-ppoutput.c (maybe_print_line): Always optimize newlines
for output size with -P.
2011-04-20 Jim Meyering <meyering@redhat.com>
* c-format.c (init_dollar_format_checking): Remove useless

View File

@ -314,7 +314,8 @@ maybe_print_line (source_location src_loc)
print.printed = 0;
}
if (src_line >= print.src_line
if (!flag_no_line_commands
&& src_line >= print.src_line
&& src_line < print.src_line + 8
&& strcmp (map->to_file, print.src_file) == 0)
{