2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-23 14:31:26 +08:00

re PR c/17538 (Filename and IMA)

2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/17538
        * c-opts.c (push_command_line_include): Use the current file
        name instead of the main one.

From-SVN: r89385
This commit is contained in:
Andrew Pinski 2004-10-21 16:31:54 +00:00 committed by Andrew Pinski
parent 943db34743
commit 3e6da82b7e
2 changed files with 7 additions and 1 deletions

@ -1,3 +1,9 @@
2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
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 <pinskia@physics.uc.edu>
PR objc/17923

@ -1353,7 +1353,7 @@ push_command_line_include (void)
cpp_opts->warn_unused_macros = warn_unused_macros;
/* Restore the line map from <command line>. */
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. */