This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [3.0 regression] File naming confusion
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: [3.0 regression] File naming confusion
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Thu, 24 May 2001 15:09:25 -0700 (PDT)
- cc: gcc-bugs at gcc dot gnu dot org, jason at redhat dot com, geoffk at redhat dot com
Thanks for not dropping the ball on this Neil. I'm not going to be able to
help you with this, at least not right now. Perhaps Jason or Geoff would
be willing to look at this?
-benjamin
> Well, I can fix this with the patch below, but not your C++ testcase.
> I suspect that both have the same (correct) fix. I've looked into
> this as much as I can; someone who understands debug output, and the
> global variables it depends on (because that *is* where the bug is,
> I'm convinced) needs to look at this. I've given enough clues as to
> what is causing it.
>
> I will enter a bug report as high priority.
>
> Neil.
>
> Index: c-lex.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/c-lex.c,v
> retrieving revision 1.141
> diff -u -p -r1.141 c-lex.c
> --- c-lex.c 2001/05/23 19:05:37 1.141
> +++ c-lex.c 2001/05/24 07:23:24
> @@ -292,6 +292,8 @@ cb_file_change (pfile, fc)
> else
> error ("leaving more files than we entered");
> }
> + else
> + input_file_stack->name = fc->to.filename;
>
> update_header_times (fc->to.filename);
> in_system_header = fc->sysp != 0;
>