From a17a104c210359e3e94287270b4613e100082703 Mon Sep 17 00:00:00 2001 From: Catherine Moore Date: Mon, 6 May 2002 16:41:48 +0000 Subject: [PATCH] (compute_register_save_size): Make sure to count all of the registers that will be saved. From-SVN: r53226 --- gcc/ChangeLog | 5 +++++ gcc/config/v850/v850.c | 9 +++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 840d693784c..7d0a02c48d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-06 Catherine Moore + + * 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 * 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 f3b17aa7f9b..a20e4ff5042 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) { -- 2.30.2