public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/51419] New: length of dwarf2 debug-info-section-label too small if sizeof(void *)==2
@ 2011-12-05 5:45 kikairoya at gmail dot com
2015-02-05 20:25 ` [Bug debug/51419] " law at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: kikairoya at gmail dot com @ 2011-12-05 5:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51419
Bug #: 51419
Summary: length of dwarf2 debug-info-section-label too small if
sizeof(void *)==2
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: kikairoya@gmail.com
Created attachment 25989
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25989
proposal patch
In dwarf2, length of debug-info-section-label (DWARF_REF_SIZE) is defined to
DWARF2_ADDR_SIZE, but it is too small (2bytes) on some target.
This causes an error in compiling libstdc++:
/bin/sh ../libtool --tag CXX --mode=compile /tmp/ggg/./gcc/xgcc
-shared-libgcc -B/tmp/ggg/./gcc -nostdinc++
-L/tmp/ggg/h8300-elf/libstdc++-v3/src
-L/tmp/ggg/h8300-elf/libstdc++-v3/src/.libs
-B/home/kikairoya/gcc/h8300-elf/bin/ -B/home/kikairoya/gcc/h8300-elf/lib/
-isystem /home/kikairoya/gcc/h8300-elf/include -isystem
/home/kikairoya/gcc/h8300-elf/sys-include
-I/tmp/ggg/h8300-elf/libstdc++-v3/include/h8300-elf
-I/tmp/ggg/h8300-elf/libstdc++-v3/include
-I/home/kikairoya/repos/gcc/libstdc++-v3/libsupc++ -fno-implicit-templates
-Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -Os -c -o wlocale-inst.lo
/home/kikairoya/repos/gcc/libstdc++-v3/src/wlocale-inst.cc
libtool: compile: /tmp/ggg/./gcc/xgcc -shared-libgcc -B/tmp/ggg/./gcc
-nostdinc++ -L/tmp/ggg/h8300-elf/libstdc++-v3/src
-L/tmp/ggg/h8300-elf/libstdc++-v3/src/.libs
-B/home/kikairoya/gcc/h8300-elf/bin/ -B/home/kikairoya/gcc/h8300-elf/lib/
-isystem /home/kikairoya/gcc/h8300-elf/include -isystem
/home/kikairoya/gcc/h8300-elf/sys-include
-I/tmp/ggg/h8300-elf/libstdc++-v3/include/h8300-elf
-I/tmp/ggg/h8300-elf/libstdc++-v3/include
-I/home/kikairoya/repos/gcc/libstdc++-v3/libsupc++ -fno-implicit-templates
-Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -Os -c
/home/kikairoya/repos/gcc/libstdc++-v3/src/wlocale-inst.cc -o wlocale-inst.o
/tmp/cc12NgrP.s: Assembler messages:
/tmp/cc12NgrP.s:74233: Error: value of 72828 too large for field of 2 bytes at
72912
target: h8300-elf, binutils: 2.22, gcc: 4.6.2 (both of host and cross)
I think DWARF2_ADDR_SIZE needs at least 4.
attach a proposal patch.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-05 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-05 5:45 [Bug debug/51419] New: length of dwarf2 debug-info-section-label too small if sizeof(void *)==2 kikairoya at gmail dot com
2015-02-05 20:25 ` [Bug debug/51419] " law at redhat dot com
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).