Commit a17a104c by Catherine Moore Committed by Catherine Moore

(compute_register_save_size): Make sure

        to count all of the registers that will be saved.

From-SVN: r53226
parent 7799175f
2002-05-06 Catherine Moore <clm@redhat.com>
* config/v850/v850.c (compute_register_save_size): Make sure
to count all of the registers that will be saved.
Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz> Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
* i386.c (q_regs_operand): Use ANY_QI_REGS_P. * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
......
...@@ -1442,14 +1442,11 @@ compute_register_save_size (p_reg_saved) ...@@ -1442,14 +1442,11 @@ compute_register_save_size (p_reg_saved)
need to cover the possibility that such a helper function will need to cover the possibility that such a helper function will
be used, despite the fact that there might be gaps in the list of be used, despite the fact that there might be gaps in the list of
registers that need to be saved. To detect this we note that the registers that need to be saved. To detect this we note that the
helper functions always push at least register r29 if the link helper functions always push at least register r29 (provided
register is not used, and at least registers r27 - r31 if the that the function is not an interrupt handler). */
link register is used (and provided that the function is not an
interrupt handler). */
if (TARGET_PROLOG_FUNCTION if (TARGET_PROLOG_FUNCTION
&& (i == 2 || i >= 20) && (i == 2 || ((i >= 20) && (i < 30))))
&& regs_ever_live[LINK_POINTER_REGNUM] ? (i < 28) : (i < 30))
{ {
if (i == 2) if (i == 2)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment