public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug debug/39527] New: wrong function name and line numbers with -g -O2 option @ 2009-03-23 12:40 MR dot Swami dot Reddy at nsc dot com 2009-03-23 13:47 ` [Bug debug/39527] " rguenth at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: MR dot Swami dot Reddy at nsc dot com @ 2009-03-23 12:40 UTC (permalink / raw) To: gcc-bugs With -g -O2 option, crx-elf-gcc generates wrong line numbers and function names. == /tmp/ccrrZsJf.o: In function `090312 (experimental)': /home10/swami/test.c:5: undefined reference to `_f1' collect2: ld returned 1 exit status === Expected output could be: === /tmp/ccEJcFRs.o: In function `main': /home10/swami/test.c:6: undefined reference to `_f1' collect2: ld returned 1 exit status ---- testcase: "test.c" ==== int f = 1; extern int f1 (); main () { f1(); } === -- Summary: wrong function name and line numbers with -g -O2 option Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: MR dot Swami dot Reddy at nsc dot com GCC host triplet: Native Linux GCC target triplet: crx-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39527 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/39527] wrong function name and line numbers with -g -O2 option 2009-03-23 12:40 [Bug debug/39527] New: wrong function name and line numbers with -g -O2 option MR dot Swami dot Reddy at nsc dot com @ 2009-03-23 13:47 ` rguenth at gcc dot gnu dot org 2009-03-24 4:52 ` MR dot Swami dot Reddy at nsc dot com 2009-03-24 5:16 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: rguenth at gcc dot gnu dot org @ 2009-03-23 13:47 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from rguenth at gcc dot gnu dot org 2009-03-23 13:47 ------- This is a binutils issue. The error is reported with the location of the calling function, not the call. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39527 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/39527] wrong function name and line numbers with -g -O2 option 2009-03-23 12:40 [Bug debug/39527] New: wrong function name and line numbers with -g -O2 option MR dot Swami dot Reddy at nsc dot com 2009-03-23 13:47 ` [Bug debug/39527] " rguenth at gcc dot gnu dot org @ 2009-03-24 4:52 ` MR dot Swami dot Reddy at nsc dot com 2009-03-24 5:16 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: MR dot Swami dot Reddy at nsc dot com @ 2009-03-24 4:52 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from MR dot Swami dot Reddy at nsc dot com 2009-03-24 04:51 ------- Subject: Re: wrong function name and line numbers with -g -O2 option rguenth at gcc dot gnu dot org wrote: > > ------- Comment #1 from rguenth at gcc dot gnu dot org 2009-03-23 13:47 ------- > This is a binutils issue. The error is reported with the location of the > calling function, not the call. Yes, this issue need to fixed in gcc and binutils also. I am working on this issue and will send the patch soon. Thanks Swami -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39527 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/39527] wrong function name and line numbers with -g -O2 option 2009-03-23 12:40 [Bug debug/39527] New: wrong function name and line numbers with -g -O2 option MR dot Swami dot Reddy at nsc dot com 2009-03-23 13:47 ` [Bug debug/39527] " rguenth at gcc dot gnu dot org 2009-03-24 4:52 ` MR dot Swami dot Reddy at nsc dot com @ 2009-03-24 5:16 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2009-03-24 5:16 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from pinskia at gcc dot gnu dot org 2009-03-24 05:16 ------- *** Bug 39535 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39527 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-24 5:16 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-03-23 12:40 [Bug debug/39527] New: wrong function name and line numbers with -g -O2 option MR dot Swami dot Reddy at nsc dot com 2009-03-23 13:47 ` [Bug debug/39527] " rguenth at gcc dot gnu dot org 2009-03-24 4:52 ` MR dot Swami dot Reddy at nsc dot com 2009-03-24 5:16 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).