OSDN Git Service

2011-04-26 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Apr 2011 10:14:34 +0000 (10:14 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Apr 2011 10:14:34 +0000 (10:14 +0000)
PR preprocessor/48248
* c-ppoutput.c (maybe_print_line): Always optimize newlines
for output size with -P.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172959 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-family/ChangeLog
gcc/c-family/c-ppoutput.c

index b0f27c5..6c6ca98 100644 (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
index 9ebac42..16d4f7d 100644 (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)
     {