This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/14415] New: DW_AT_high_pc for sh64-elf-gcc with -m5-64media is 0
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2004 20:28:01 -0000
- Subject: [Bug debug/14415] New: DW_AT_high_pc for sh64-elf-gcc with -m5-64media is 0
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When compiling the trivial example included in this report, the debug
information has DW_AT_high_pc values of zero, which clearly seems
wrong.
Environment:
System: Linux fred.ninemoons.com 2.4.22-1.2174.nptl #1 Wed Feb 18 16:38:32 EST 2004 i686 athlon i386 GNU/Linux
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: sh64-unknown-elf
configured with: /src/sourceware/gcc/gcc/configure -v --prefix=/usr/local/sourceware --target=sh64-elf --enable-shared --with-newlib --enable-languages=c,c++
How-To-Repeat:
$ cat b.c
int sum (int x, int y)
{
return x + y;
}
$ /usr/local/sourceware/bin/sh64-elf-gcc -v
Reading specs from /links1/usr/local/sourceware/bin/../lib/gcc/sh64-elf/3.5.0/specs
Configured with: /src/sourceware/gcc/gcc/configure -v --prefix=/usr/local/sourceware --target=sh64-elf --enable-shared --with-newlib --enable-languages=c,c++ : (reconfigured)
Thread model: single
gcc version 3.5.0 20040303 (experimental)
$ /usr/local/sourceware/bin/sh64-elf-gcc -c -m5-64media -g b.c
$ dwarfdump -a b.o | grep high_pc
DW_AT_high_pc 0
DW_AT_high_pc 0
< 5> DW_AT_high_pc DW_FORM_addr
< 38> DW_AT_high_pc DW_FORM_addr
DW_AT_high_pc 0
$ sh64-elf-readelf --debug-dump b.o | grep high_pc
DW_AT_high_pc DW_FORM_addr
DW_AT_high_pc DW_FORM_addr
DW_AT_high_pc : 0 0
DW_AT_high_pc : 0 0
------- Additional Comments From fnf at redhat dot com 2004-03-03 20:28 -------
Fix:
Don't compile with -m5-32media? :-(
--
Summary: DW_AT_high_pc for sh64-elf-gcc with -m5-64media is 0
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fnf at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh64-unknown-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14415