bfin.c (must_save_p): New function, mostly broken out of n_dregs_to_save and n_pregs_...
authorBernd Schmidt <bernd.schmidt@analog.com>
Mon, 19 Nov 2007 15:46:41 +0000 (15:46 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 19 Nov 2007 15:46:41 +0000 (15:46 +0000)
commit4d82f261af84b65eb92526d8f9c90fd358880c29
treecd4b55c7c35130b7fef9f78514d4c0bb2f730205
parent60f1711a6d52865b59bc5320d3d0595bf398db12
bfin.c (must_save_p): New function, mostly broken out of n_dregs_to_save and n_pregs_to_save.

* config/bfin/bfin.c (must_save_p): New function, mostly broken out of
n_dregs_to_save and n_pregs_to_save.
(n_pregs_to_save, n_dregs_to_save): Use it.  New argument CONSECUTIVE;
all callers changed.
(expand_prologue_reg_save, expand_epilogue_reg_restore): Enhance to be
able to save single D/P registers that aren't saved by the push/pop
multiple insns.

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