This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[arm] Fix thumb dwarf frame offsets
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Earnshaw <rearnsha at arm dot com>
- Date: Wed, 21 Jul 2004 00:19:17 +0100
- Subject: [arm] Fix thumb dwarf frame offsets
- Organization: CodeSourcery
Patch below fixes the dwarf2 frame offset information for thumb code. An extra
GEN_INT meant we were adding the address of an rtx object, not the increment
itself.
Tested with cross to arm-none-elf. Applied as obvious.
Paul
2004-07-21 Paul brook <paul@codesourcery.com>
* config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
Index: arm.c
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/config/arm/arm.c,v
retrieving revision 1.377
diff -u -p -r1.377 arm.c
--- arm.c 14 Jul 2004 17:51:17 -0000 1.377
+++ arm.c 20 Jul 2004 17:06:03 -0000
@@ -13265,7 +13260,7 @@ thumb_expand_prologue (void)
RTX_FRAME_RELATED_P (insn) = 1;
dwarf = gen_rtx_SET (SImode, stack_pointer_rtx,
plus_constant (stack_pointer_rtx,
- GEN_INT (- amount)));
+ -amount));
RTX_FRAME_RELATED_P (dwarf) = 1;
REG_NOTES (insn)
= gen_rtx_EXPR_LIST (REG_FRAME_RELATED_EXPR, dwarf,
@@ -13291,7 +13286,7 @@ thumb_expand_prologue (void)
RTX_FRAME_RELATED_P (insn) = 1;
dwarf = gen_rtx_SET (SImode, stack_pointer_rtx,
plus_constant (stack_pointer_rtx,
- GEN_INT (- amount)));
+ -amount));
RTX_FRAME_RELATED_P (dwarf) = 1;
REG_NOTES (insn)
= gen_rtx_EXPR_LIST (REG_FRAME_RELATED_EXPR, dwarf,