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
This commit is contained in:
parent
a8344e3213
commit
f9c656237c
@ -1222,11 +1222,13 @@ sanitize_cpp_opts (void)
|
||||
|
||||
/* Disable -dD, -dN and -dI if normal output is suppressed. Allow
|
||||
-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_dump_macros != 'M')
|
||||
flag_dump_macros = 0;
|
||||
flag_dump_includes = 0;
|
||||
flag_no_line_commands = 1;
|
||||
}
|
||||
|
||||
cpp_opts->unsigned_char = !flag_signed_char;
|
||||
|
@ -370,7 +370,7 @@ pp_file_change (const struct line_map *map)
|
||||
{
|
||||
const char *flags = "";
|
||||
|
||||
if (flag_no_line_commands || flag_no_output)
|
||||
if (flag_no_line_commands)
|
||||
return;
|
||||
|
||||
if (map != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user