diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/v850/v850.c | 9 |
2 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 840d693..7d0a02c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * i386.c (q_regs_operand): Use ANY_QI_REGS_P. diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index f3b17aa7..a20e4ff 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -1442,14 +1442,11 @@ compute_register_save_size (p_reg_saved) 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 registers that need to be saved. To detect this we note that the - helper functions always push at least register r29 if the link - register is not used, and at least registers r27 - r31 if the - link register is used (and provided that the function is not an - interrupt handler). */ + helper functions always push at least register r29 (provided + that the function is not an interrupt handler). */ if (TARGET_PROLOG_FUNCTION - && (i == 2 || i >= 20) - && regs_ever_live[LINK_POINTER_REGNUM] ? (i < 28) : (i < 30)) + && (i == 2 || ((i >= 20) && (i < 30)))) { if (i == 2) { |
