https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64003
--- Comment #20 from Jeffrey A. Law <law at redhat dot com> --- Ilya, it's the function call in this code I think: (cond [(eq_attr "length_nobnd" "!0") (plus (symbol_ref ("ix86_bnd_prefixed_insn_p (insn)")) (attr "length_nobnd")) You're calling out to ix86_bnd_prefixed_insn_p, and that's problematical for branch shortening if I'm understanding Joern's comments here and David's comments in the PA port correctly.