From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c/4053: Filenames in debug info for included files are incorrect Date: Sat, 18 Aug 2001 14:26:00 -0000 Message-id: <20010818212600.20779.qmail@sourceware.cygnus.com> X-SW-Source: 2001-08/msg00517.html List-Id: The following reply was made to PR c/4053; it has been noted by GNATS. From: Daniel Jacobowitz To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: c/4053: Filenames in debug info for included files are incorrect Date: Sat, 18 Aug 2001 14:19:24 -0700 On Fri, Aug 17, 2001 at 11:00:02PM -0000, dan@debian.org wrote: > > >Number: 4053 > >Category: c > >Synopsis: Filenames in debug info for included files are incorrect > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: unassigned > >State: open > >Class: sw-bug > >Submitter-Id: net > >Arrival-Date: Fri Aug 17 16:06:00 PDT 2001 > >Closed-Date: > >Last-Modified: > >Originator: dan@debian.org > >Release: gcc 3_0 branch > >Organization: > >Environment: > i686-pc-linux-gnu native, or i686-pc-linux-gnu -> mips-unknown-linux-gnu cross. > >Description: > Take two files, linetest.h: > a = b; > c = d; > e = f; > > and linetest.c: > int main() > { > int a, b, c, d, e, f; > a = b = c = d = e = f = 0; > > #include "linetest.h" > > return 0; > } > > Compile with debugging. Notice that the filename is never changed - the > three lines from the header have debug info indicating they are the first > three lines of linetest.c. > > This is a regression from 2.95.x, but not from 3.0 release. It's independent > of debug format - the line notes are wrong. I'd check HEAD, but > it segfaults in _cpp_simplify_pathname because "/usr/local/include" is not > writeable today. The same thing happens on the trunk. And it is not a preprocessor problem (directly at least); #line directives are correct. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer