[Bug debug/39540] New: wrong function name and line numbers with -g -O2 option
MR dot Swami dot Reddy at nsc dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 24 09:57:00 GMT 2009
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=39540
More information about the Gcc-bugs
mailing list