------- Comment #1 from mirq-gccboogs at rere dot qmqm dot pl 2010-03-21 18:44 ------- [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. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42149