This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix regression preprocessor/17651


This fixes the named regression (on mainline).  Bootstrapped and passed full
regression testing on i686-pc-linux-gnu.

OK to commit?

	PR preprocessor/17651
	* c-ppoutput.c (print_line): Don't output line directives if
	flag_no_output is set (such as -dM, -MM, etc.)

--- c-ppoutput.c	2004-11-10 16:06:31.000000000 -0500
+++ c-ppoutput.c.new	2004-11-26 20:24:41.000000000 -0500
@@ -241,7 +241,7 @@ print_line (source_location src_loc, con
     putc ('\n', print.outf);
   print.printed = 0;
 
-  if (!flag_no_line_commands)
+  if (!flag_no_line_commands && !flag_no_output)
     {
       const struct line_map *map = linemap_lookup (&line_table, src_loc);
 

-- 
This space intentionally left blank.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]