summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-04 20:27:02 +0000
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-04 20:27:02 +0000
commitc0b4b46336c29f8da5c10ba64e64255996e35aab (patch)
tree398cdd3b29478347981647468206ab5e7ffd4d9a
parenta0d86b72818ebc19bc5e976df5a906195a2207e2 (diff)
downloadgcc-c0b4b46336c29f8da5c10ba64e64255996e35aab.tar.gz
* config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
offset without frame pointer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63799 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/m68k/m68k.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a79b9806fb0..c8b290ee62e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-04 Andreas Schwab <schwab@suse.de>
+
+ * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
+ offset without frame pointer.
+
2003-03-04 Steve Ellcey <sje@cup.hp.com>
* expr.c (expand_expr): Call promote_mode to set unsignedp.
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index cb94d232923..5e14b29614a 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -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.
@@ -475,7 +475,7 @@ m68k_output_function_prologue (stream, size)
}
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);
}