http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54674
Bug #: 54674 Summary: ICE in build2_stat, at tree.c:3835 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: rmansfi...@qnx.com CC: olege...@gcc.gnu.org Host: x86_64-unknown-linux-gnu Target: sh4-unknown-linux-gnu Build: x86_64-unknown-linux-gnu Created attachment 28251 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28251 preprocessed src $ ./xgcc -v Using built-in specs. COLLECT_GCC=./xgcc Target: sh4-unknown-linux-gnu Configured with: ../configure --target=sh4-unknown-linux-gnu --prefix=/home/ryan/x-tools/sh4-unknown-linux-gnuc --with-local-prefix=/home/ryan/x-tools/sh4-unknown-linux-gnu/sh4-unknown-linux-gnu/sys-root --disable-multilib --with-sysroot=/home/ryan/x-tools/sh4-unknown-linux-gnu/sh4-unknown-linux-gnu/sys-root --with-newlib --enable-threads=no --disable-shared --enable-__cxa_atexit --disable-nls --enable-symvers=gnu --enable-languages=c --enable-target-optspace --enable-checking --disable-libmudflap --disable-libssp Thread model: single gcc version 4.8.0 20120923 (experimental) [trunk revision 191648] (GCC) ~/gnu/gcc/trunk/sh4-build/gcc$ ./xgcc -B. ~/ice.i -Os -c /home/ryan/ice.i: In function 'foo': /home/ryan/ice.i:11:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default] memcpy (tmp, buf, bytes); ^ /home/ryan/ice.i: In function 'bar': /home/ryan/ice.i:25:1: internal compiler error: in build2_stat, at tree.c:3835 bar (unsigned len) ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. This ICE appears to be introduced in rev191342 http://gcc.gnu.org/viewcvs?view=revision&revision=191342