On 11/11/2015 01:31 PM, Eric Botcazou wrote:
Yes, it probably should, thanks for spotting it, revised patch attached.
PR target/67265
* ira.c (ira_setup_eliminable_regset): Do not necessarily create the
frame pointer for stack checking if non-call exceptions aren't used.
* config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
Ok if it passes testing. Should have thought of it earlier, but if you
want to, you can also make a fp_needed_for_stack_checking_p function
containing the four tests.
Bernd