From c0b4b46336c29f8da5c10ba64e64255996e35aab Mon Sep 17 00:00:00 2001
From: schwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 4 Mar 2003 20:27:02 +0000
Subject: [PATCH] 	* 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
---
 gcc/ChangeLog          | 5 +++++
 gcc/config/m68k/m68k.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a79b9806fb0c..c8b290ee62e0 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 cb94d2329233..5e14b29614a1 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);
 	}
-- 
GitLab