Compile the testcase with: .../cc1 -fpreprocessed libgcc2.i -g -O2 -fnon-call-exceptions -o libgcc2.s This results in an ICE in reload_cse_simplify_operands, since an earlyclobber output has been allocated the same register as an input of an asm template.
-- Summary: reload allocates register of live register variable to earlyclobber output Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: wrong-code, ice-on-valid-code Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: amylaar at gcc dot gnu dot org GCC target triplet: sh-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27906