bfin.c (n_dregs_to_save, [...]): New argument IS_INTHANDLER; all callers changed.
authorBernd Schmidt <bernd.schmidt@analog.com>
Sat, 5 Nov 2005 11:29:33 +0000 (11:29 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Sat, 5 Nov 2005 11:29:33 +0000 (11:29 +0000)
commite989202f01e344ee8f0cafc8d3f0e9addbbe6dc8
tree5bcf7bbd2f9f6163b05471cb42850dbddbfa018f
parent460d832b00a3580ed4dcf175894d99159535deaf
bfin.c (n_dregs_to_save, [...]): New argument IS_INTHANDLER; all callers changed.

* config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
IS_INTHANDLER; all callers changed.
(n_regs_saved_by_prologue): Take interrupt handler attributes into
account.
(do_link, do_unlink): New argument ALL; all callers changed.
(expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
If function isn't leaf, save and restore all registers.
(bfin_function_ok_for_sibcall): Only true if not an interrupt or
exception handler.

From-SVN: r106526
gcc/ChangeLog
gcc/config/bfin/bfin.c