[Bug c/17538] [4.0 Regression] Filename and IMA
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Oct 10 04:39:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-10 04:39 -------
I have a fix, it is a simple one liner, I will post it soon to gcc-patches@:
Index: c-opts.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/c-opts.c,v
retrieving revision 1.128
diff -u -p -r1.128 c-opts.c
--- c-opts.c 3 Oct 2004 20:53:04 -0000 1.128
+++ c-opts.c 10 Oct 2004 04:39:07 -0000
@@ -1355,7 +1355,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. */
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17538
More information about the Gcc-bugs
mailing list