Test trunk/gcc/testsuite/gcc.dg/matrix/matrix-1.c (and friends) fails with ICE on AVR target. Note there is existing open bug PR37165 - but the failure noted was not ICE. Executing on host: /media/verbatim/gcchead/obj-dir/gcc/xgcc -B/media/verbatim/gcchead/obj-dir/gcc/ /media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/matrix/matrix-1.c -O3 -fipa-matrix-reorg -fdump-ipa-matrix-reorg -fwhole-program -combine -DSTACK_SIZE=2048 -DNO_TRAMPOLINES -DSIGNAL_SUPPRESS -mmcu=atmega128 /home/andy/winavrfiles/avrtest/dejagnuboards/exit.c -Wl,-u,vfprintf -lprintf_flt -Wl,-Tbss=0x802000,--defsym=__heap_end=0x80ffff -lm -o ./matrix-1.exe (timeout = 300) /media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/matrix/matrix-1.c: In function 'mem_init': /media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/matrix/matrix-1.c:52:1: error: type mismatch in array reference struct __file * struct __file * D.3778 = __iob[2]; /media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/matrix/matrix-1.c:52:1: error: type mismatch in array reference struct __file * struct __file * D.3778 = __iob[2]; /media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/matrix/matrix-1.c:52:1: internal compiler error: verify_gimple failed Please submit a full bug report,
[looks like bug #39959] The same happens with -combine on following code (arm-none-eabi target): a.h: struct a { int b; int c; }; extern struct a *p asm("r4"); void d(int *); b.c: #include "a.h" void t1() { d(&p->b); } c.c: #include "a.h" void t2() { d(&p->c); } gcc -combine -c b.c c.c b.c: In function 't1': b.c:2:6: error: type mismatch in indirect reference struct a struct a D.2762 = &p.1->b; b.c:2:6: internal compiler error: verify_gimple failed code 'cat' together compiles.
Combine bug (PR 39959) is a different issue from the matrix testcase.
-combine has since been removed so closing as won't fix for 4.6.0.