This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/4053: Filenames in debug info for included files are incorrect



>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.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]