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

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).