https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67004
Uroš Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-07-25 CC| |mshawcroft at gcc dot gnu.org, | |ubizjak at gmail dot com Ever confirmed|0 |1 --- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> --- Similar issue is reported at [1] with --enable-checking=rtl I'm testing following patch: --cut here-- Index: i386.h =================================================================== --- i386.h (revision 226207) +++ i386.h (working copy) @@ -2264,7 +2264,7 @@ do { \ /* Adjust the length of the insn with the length of BND prefix. */ #define ADJUST_INSN_LENGTH(INSN, LENGTH) \ do { \ - if (recog_memoized (INSN) >= 0 \ + if (INSN_P (INSN) && INSN_CODE (INSN) >= 0 \ && get_attr_maybe_prefix_bnd (INSN)) \ LENGTH += ix86_bnd_prefixed_insn_p (INSN); \ } while (0) --cut here-- Please note that this problem will also hit aarch64 (maintainer CC'd). [1] https://gcc.gnu.org/ml/gcc-patches/2015-07/msg02131.html