From: Andrew Pinski Date: Thu, 21 Oct 2004 16:31:54 +0000 (+0000) Subject: re PR c/17538 (Filename and IMA) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e6da82b7ec95cead54358963912cfdba6d578d9;p=gcc.git re PR c/17538 (Filename and IMA) 2004-10-21 Andrew Pinski PR c/17538 * c-opts.c (push_command_line_include): Use the current file name instead of the main one. From-SVN: r89385 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba84e868f7d..f36508315ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-10-21 Andrew Pinski + + PR c/17538 + * c-opts.c (push_command_line_include): Use the current file + name instead of the main one. + 2004-10-21 Andrew Pinski PR objc/17923 diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 82932cec4f3..146ef578c9e 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1353,7 +1353,7 @@ push_command_line_include (void) cpp_opts->warn_unused_macros = warn_unused_macros; /* Restore the line map from . */ if (!cpp_opts->preprocessed) - cpp_change_file (parse_in, LC_RENAME, main_input_filename); + cpp_change_file (parse_in, LC_RENAME, this_input_filename); /* Set this here so the client can change the option if it wishes, and after stacking the main file so we don't trace the main file. */