http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57134
Bug #: 57134 Summary: ICE with -mstrict-align and inline assembly on ppc64 Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: an...@samba.org Created attachment 29987 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29987 Testcase that ICE's with -mstrict-align on ppc64 The following testcase passes on a ppc64 4.7.2 build but fails on a 4.9.0 20130501 build: # gcc -m64 -O2 -S -mstrict-align testcase.c testcase.c: In function 'rb_remove_pages': testcase.c:16:2: internal compiler error: in expand_asm_operands, at stmt.c:910 __asm__ __volatile__("# %0,%1" : "=r"(t) : "m"(v->counter)); ^ 0x10604437 expand_asm_operands ../../gcc/gcc/stmt.c:910 0x10604b3b expand_asm_stmt(gimple_statement_d*) ../../gcc/gcc/stmt.c:1151 0x1022f357 expand_gimple_stmt_1 ../../gcc/gcc/cfgexpand.c:2154 0x1022f357 expand_gimple_stmt ../../gcc/gcc/cfgexpand.c:2309 0x10230b77 expand_gimple_basic_block ../../gcc/gcc/cfgexpand.c:4143 0x10233f7b gimple_expand_cfg ../../gcc/gcc/cfgexpand.c:4662 Please submit a full bug report,