public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kikairoya at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/51419] New: length of dwarf2 debug-info-section-label too small if sizeof(void *)==2 Date: Mon, 05 Dec 2011 05:45:00 -0000 [thread overview] Message-ID: <bug-51419-4@http.gcc.gnu.org/bugzilla/> (raw) 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.
next reply other threads:[~2011-12-05 5:45 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-12-05 5:45 kikairoya at gmail dot com [this message] 2015-02-05 20:25 ` [Bug debug/51419] " law at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-51419-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).