http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57896
--- Comment #25 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 32180 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32180&action=edit gcc48-pr57896.patch So like this (4.8 version, untested)? Uros, can you please double-check it? The point is, if d->testing_p is true, we should do as few work as possible, certainly not call any emit_insn or gen_reg_rtx, and as soon as we know we'll certainly eventually return true, return it.