sparc.c (eligible_for_return_delay): Do not return false if there are call-saved registers here...

* config/sparc/sparc.c (eligible_for_return_delay): Do not return
	false if there are call-saved registers here...
	(sparc_can_use_return_insn_p): ...but here instead.
	(save_or_restore_regs): Fix thinko.
	(sparc_expand_prologue): Use current_function_is_leaf.
	(sparc_frame_pointer_required): Likewise.

From-SVN: r174010
This commit is contained in:
Eric Botcazou 2011-05-21 22:03:37 +00:00
parent 6d1e6c0f5b
commit bd9a3248ab
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
* config/sparc/sparc.c (eligible_for_return_delay): Do not return
false if there are call-saved registers here...
(sparc_can_use_return_insn_p): ...but here instead.
(save_or_restore_regs): Fix thinko.
(sparc_expand_prologue): Use current_function_is_leaf.
(sparc_frame_pointer_required): Likewise.
2011-05-21 Nick Clifton <nickc@redhat.com>
PR target/49098