aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorCatherine Moore <clm@redhat.com>2002-05-06 16:41:48 +0000
committerCatherine Moore <clm@gcc.gnu.org>2002-05-06 12:41:48 -0400
commita17a104c210359e3e94287270b4613e100082703 (patch)
treeafa29a95b4e675d1348274886e8c1d1da2fc0cc5 /gcc
parent7799175fd9ee889226a43066878666c67204bd01 (diff)
downloadgcc-a17a104c210359e3e94287270b4613e100082703.zip
gcc-a17a104c210359e3e94287270b4613e100082703.tar.gz
gcc-a17a104c210359e3e94287270b4613e100082703.tar.bz2
(compute_register_save_size): Make sure
to count all of the registers that will be saved. From-SVN: r53226
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/v850/v850.c9
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)
{