This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[arm] Annother FPA frame offset bug
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: "Catalin Marinas" <Catalin dot Marinas at arm dot com>,"Richard Earnshaw" <Richard dot Earnshaw at arm dot com>
- Date: Mon, 26 Apr 2004 19:39:01 +0100
- Subject: [arm] Annother FPA frame offset bug
- Organization: CodeSourcery
Patch below includes blocks of 4 registers when calculating the frame size.
Tested with cross to arm-none-elf.
Ok?
Paul
2004-04-26 Paul Brook <paul@codesourcery.com>
* config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
Index: config/arm/arm.c
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/config/arm/arm.c,v
retrieving revision 1.351
diff -u -p -r1.351 arm.c
--- a/config/arm/arm.c 26 Apr 2004 13:56:00 -0000 1.351
+++ b/config/arm/arm.c 26 Apr 2004 16:54:47 -0000
@@ -10380,6 +10380,7 @@ arm_expand_prologue (void)
{
insn = emit_sfm (reg, 4);
RTX_FRAME_RELATED_P (insn) = 1;
+ saved_regs += 48;
start_reg = reg - 1;
}
}