This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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

Applied to the mainline and 4.1 branch. 

2006-09-14  Anatoly Sokolov <>

	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 ELIMINABLE_REGS {                                      \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]