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: unassig...@gcc.gnu.org ReportedBy: dougk...@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)