Commit f9c65623 by Nathanael Nerode

re PR preprocessor/17651 (Erroneous preprocessor output with -g when generating dependencies)

2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>

	PR preprocessor/17651
	* c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
	flag_no_line_commands.
	* c-ppoutput.c (pp_file_change): Remove now-redundant check of
	flag_no_output.

From-SVN: r91436
parent a8344e32
...@@ -1222,11 +1222,13 @@ sanitize_cpp_opts (void) ...@@ -1222,11 +1222,13 @@ sanitize_cpp_opts (void)
/* Disable -dD, -dN and -dI if normal output is suppressed. Allow /* Disable -dD, -dN and -dI if normal output is suppressed. Allow
-dM since at least glibc relies on -M -dM to work. */ -dM since at least glibc relies on -M -dM to work. */
/* Also, flag_no_output implies flag_no_line_commands, always. */
if (flag_no_output) if (flag_no_output)
{ {
if (flag_dump_macros != 'M') if (flag_dump_macros != 'M')
flag_dump_macros = 0; flag_dump_macros = 0;
flag_dump_includes = 0; flag_dump_includes = 0;
flag_no_line_commands = 1;
} }
cpp_opts->unsigned_char = !flag_signed_char; cpp_opts->unsigned_char = !flag_signed_char;
......
...@@ -370,7 +370,7 @@ pp_file_change (const struct line_map *map) ...@@ -370,7 +370,7 @@ pp_file_change (const struct line_map *map)
{ {
const char *flags = ""; const char *flags = "";
if (flag_no_line_commands || flag_no_output) if (flag_no_line_commands)
return; return;
if (map != NULL) if (map != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment