When compiling compile/pr17906.c, compute_frame_pointer_to_fb_displacement
passes the argument pointer to eliminate_regs.  This eliminates it to
the frame pointer,
which later causes and ICE because frame_pointer_needed is not set.

The problem is that ELIMINABLE_REGS in avr.h does not specify a direct
elimination
from the argument pointer to the stack pointer; the attached patch
rectifies that.
Regression tested with the avr simulator.

OK to apply?

Attachment: fb_offset-fix
Description: Binary data

Reply via email to