This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[avr] fix PR target/26504
- From: "Anatoly Sokolov" <aesok at post dot ru>
- To: <gcc-patches at gcc dot gnu dot org>
- Cc: <j dot gnu at uriah dot heep dot sax dot de>, <eweddington at cso dot atmel dot com>, <denisc at overta dot ru>
- Date: Fri, 15 Sep 2006 01:25:50 +0400
- Subject: [avr] fix PR target/26504
It's a regression present on the mainline and 4.1 branch.
When trying to compile gcc 4.1.0 for the AVR processor I get this error:
../../gcc/libgcc2.c: In function '__fixunssfsi':
../../gcc/libgcc2.c:1499: internal compiler error: in
compute_frame_pointer_to_cfa_displacement, at dwarf2out.c:10445
Please submit a full bug report,
This problem can be avoided by defining the FRAME_POINTER_CFA_OFFSET macro.
FP and SP have the same value on function entry, a value of zero should work
here.
Applied to the mainline and 4.1 branch.
2006-09-14 Anatoly Sokolov <aesok@post.ru>
PR target/26504
* config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
Index: gcc/config/avr/avr.h
===================================================================
--- gcc/config/avr/avr.h (revision 116948)
+++ gcc/config/avr/avr.h (working copy)
@@ -283,6 +283,9 @@
#define FRAME_POINTER_REQUIRED frame_pointer_required_p()
+/* Offset from the frame pointer register value to the top of the stack. */
+#define FRAME_POINTER_CFA_OFFSET(FNDECL) 0
+
#define ELIMINABLE_REGS { \
{ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM}, \
{FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM} \
Anatoly.