This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: debug/3352: extern/inline combination in try/catch causes wrong lineinfo for all symbols in file
- From: dberlin at sources dot redhat dot com
- To: dberlin at sources dot redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jakacki at cidc dot com dot cn, nobody at gcc dot gnu dot org
- Date: 18 Dec 2001 22:23:29 -0000
- Subject: Re: debug/3352: extern/inline combination in try/catch causes wrong lineinfo for all symbols in file
- Reply-to: dberlin at sources dot redhat dot com, dberlin at sources dot redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jakacki at cidc dot com dot cn, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: extern/inline combination in try/catch causes wrong lineinfo for all symbols in file
Responsible-Changed-From-To: unassigned->dberlin
Responsible-Changed-By: dberlin
Responsible-Changed-When: Tue Dec 18 14:23:29 2001
Responsible-Changed-Why:
Me
State-Changed-From-To: open->closed
State-Changed-By: dberlin
State-Changed-When: Tue Dec 18 14:23:29 2001
State-Changed-Why:
This is an assembler/linker bug (somewhere in bfd's stabs handling, in other words).
if you look at the output of gcc, it's identifying the correct lines.
I.e. we have
.stabs "main:F(0,1)",36,0,16,main
etc
However, the object file incorrectly has:
U _Unwind_Resume /home/dberlin/a.cc:11
00000000 W _Z7inlinedv /home/dberlin/a.cc:11
U _Z8externalv /home/dberlin/a.cc:11
00000000 V _ZTI9exception /home/dberlin/a.cc:11
00000000 V _ZTS9exception /home/dberlin/a.cc:11
U _ZTVN10__cxxabiv117__class_type_infoE /home/dberlin/a.cc:11
U __cxa_begin_catch /home/dberlin/a.cc:11
U __cxa_end_catch /home/dberlin/a.cc:11
U __gxx_personality_v0 /home/dberlin/a.cc:11
00000000 T main /home/dberlin/a.cc:11
So the problem isn't gcc, it's the assembler/bfd
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3352