http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52006
Bug #: 52006 Summary: [4.7 Regression] ARM ICE on Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target AssignedTo: ja...@gcc.gnu.org ReportedBy: ja...@gcc.gnu.org CC: ram...@gcc.gnu.org Target: arm*-linux-gnueabi /* { dg-do compile } */ /* { dg-options "-march=armv7-a -mfloat-abi=hard -O2 -fPIC" } */ unsigned long a; static int b; void foo (void) { asm volatile ("" : "=r" (b)); } void bar (float f) { if (f < b / 100.0) a = 1; } ICEs on arm with: error: insn does not satisfy its constraints: (insn 69 64 10 2 (set (reg:SI 77 s14 [orig:143 b ] [143]) (mem:SI (unspec:SI [ (reg/f:SI 2 r2 [141]) (const_int 8 [0x8]) (const_int 1 [0x1]) ] UNSPEC_PIC_BASE) [0 S4 A32])) rh784748.i:17 188 {tls_load_dot_plus_eight} (nil)) rh784748.i:19:1: internal compiler error: in copyprop_hardreg_forward_1, at regcprop.c:767