[Bug target/65167] ICE: in assign_by_spills, at lra-assigns.c:1383 (unable to find a register to spill) with -O -fschedule-insns -fcheck-pointer-bounds -mmpx

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 24 12:49:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65167

--- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Ilya Enkovich from comment #4)
> ix86_function_arg_regno_p doesn't recognize bnd registers as args. Also
> avoid_func_arg_motion doesn't work for BNDSTX because it is not a single
> set.  
> 
> This patch works for reproducer:

> +  if (TARGET_MPX && BND_REGNO_P (regno))

No need for TARGET_MPX check, there will be no bnd regs when this flag is
cleared.


More information about the Gcc-bugs mailing list