This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.3/3.4 patch] Fix DWARF2 output for m68k
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 04 Mar 2003 16:21:02 +0100
- Subject: [3.3/3.4 patch] Fix DWARF2 output for m68k
This fixes a bug in the DWARF2 output for m68k when no frame pointer is
used. Tested on m68k-linux.
Andreas.
2003-03-04 Andreas Schwab <schwab at suse dot de>
* config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
offset without frame pointer.
Index: gcc/config/m68k/m68k.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68k/m68k.c,v
retrieving revision 1.76
diff -u -p -a -u -p -a -r1.76 gcc/config/m68k/m68k.c
--- gcc/config/m68k/m68k.c 3 Dec 2002 19:45:29 -0000 1.76
+++ gcc/config/m68k/m68k.c 4 Mar 2003 15:19:20 -0000
@@ -1,5 +1,5 @@
/* Subroutines for insn-output.c for Motorola 68000 family.
- Copyright (C) 1987, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ Copyright (C) 1987, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003
Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -461,7 +461,7 @@ m68k_output_function_prologue (stream, s
}
if (dwarf2out_do_frame ())
{
- cfa_store_offset += fsize;
+ cfa_store_offset += fsize + 4;
cfa_offset = cfa_store_offset;
dwarf2out_def_cfa ("", STACK_POINTER_REGNUM, cfa_offset);
}
--
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."