diff options
author | Richard Guenther <rguenther@suse.de> | 2011-04-26 10:14:34 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-04-26 10:14:34 +0000 |
commit | 304dfbe3647ba3ef75f952913447ba3a5d5c5f29 (patch) | |
tree | 53ad166e14a457bb33c93480c196c4a90ed70a41 /gcc/c-family/c-ppoutput.c | |
parent | e73a83fc7c03a209603e2607ec3be65adb197fa9 (diff) | |
download | gcc-304dfbe3647ba3ef75f952913447ba3a5d5c5f29.zip gcc-304dfbe3647ba3ef75f952913447ba3a5d5c5f29.tar.gz gcc-304dfbe3647ba3ef75f952913447ba3a5d5c5f29.tar.bz2 |
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
Diffstat (limited to 'gcc/c-family/c-ppoutput.c')
-rw-r--r-- | gcc/c-family/c-ppoutput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-family/c-ppoutput.c b/gcc/c-family/c-ppoutput.c index 9ebac42..16d4f7d 100644 --- a/gcc/c-family/c-ppoutput.c +++ b/gcc/c-family/c-ppoutput.c @@ -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) { |