public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/49551] New: common variables and -fdata-sections cause ICE in C front-end.
@ 2011-06-27 18:27 dougkwan at google dot com
  2011-06-27 20:48 ` [Bug c/49551] " dougkwan at google dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dougkwan at google dot com @ 2011-06-27 18:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49551

           Summary: common variables and -fdata-sections cause ICE in C
                    front-end.
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dougkwan@google.com


The following 2 line cause both gcc-4.6.0 and trunk to crash:

---bug.c---
int x = 1;
int x;
---
$ arm-unknown-linux-gnueabi-gcc -O -fdata-sections bug.c
bug.c:2:1: internal compiler error: in get_variable_section, at varasm.c:1004
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ arm-unknown-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=install/bin/arm-unknown-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/usr/local/google2/home/dougkwan/gcc-trunk-1/install/bin/../libexec/gcc/arm-unknown-linux-gnueabi/4.7.0/lto-wrapper
Target: arm-unknown-linux-gnueabi
Configured with: ../gcc/configure --target=arm-unknown-linux-gnueabi
--disable-bootstrap --enable-languages=c --with-gmp=/home/dougkwan/gcc-lib
--with-sysroot=/home/dougkwan/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sys-root
Thread model: posix
gcc version 4.7.0 20110607 (experimental) (GCC)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-02 16:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-27 18:27 [Bug c/49551] New: common variables and -fdata-sections cause ICE in C front-end dougkwan at google dot com
2011-06-27 20:48 ` [Bug c/49551] " dougkwan at google dot com
2014-09-24 17:58 ` [Bug target/49551] tentative declaration after definition " mpolacek at gcc dot gnu.org
2015-01-29 21:37 ` bilbotheelffriend at gmail dot com
2015-06-02 16:43 ` prathamesh3492 at gcc dot gnu.org
2015-06-02 16:46 ` prathamesh3492 at gcc dot gnu.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).