This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fix regression preprocessor/17651
- From: neroden at fastmail dot fm (Nathanael Nerode)
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 27 Nov 2004 11:29:28 -0500
- Subject: [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.