aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m68k/m68k.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@issan.informatik.uni-dortmund.de>1997-09-22 17:46:38 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-22 11:46:38 -0600
commit078e983e5101473e8aa2772a93432ede89a1c962 (patch)
treef3dfb912d786988b84272ecf03e8c80e859c1486 /gcc/config/m68k/m68k.h
parent9524f769a795d7ad5b9a1d5266d372ef3f466f4c (diff)
downloadgcc-078e983e5101473e8aa2772a93432ede89a1c962.zip
gcc-078e983e5101473e8aa2772a93432ede89a1c962.tar.gz
gcc-078e983e5101473e8aa2772a93432ede89a1c962.tar.bz2
m68k.c (output_function_prologue): Add dwarf2 support.
* m68k.c (output_function_prologue): Add dwarf2 support. * m68k.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_REGNUM, INCOMING_FRAME_SP_OFFSET): New definitions. From-SVN: r15631
Diffstat (limited to 'gcc/config/m68k/m68k.h')
-rw-r--r--gcc/config/m68k/m68k.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h
index 0ac38cb..6004aaa 100644
--- a/gcc/config/m68k/m68k.h
+++ b/gcc/config/m68k/m68k.h
@@ -1792,6 +1792,18 @@ __transfer_from_trampoline () \
#define DBX_REGISTER_NUMBER(REGNO) ((REGNO) < 16 ? (REGNO) : (REGNO) + 2)
+/* Before the prologue, RA is at 0(%sp). */
+#define INCOMING_RETURN_ADDR_RTX \
+ gen_rtx (MEM, VOIDmode, gen_rtx (REG, VOIDmode, STACK_POINTER_REGNUM))
+
+/* We must not use the DBX register numbers for the DWARF 2 CFA column
+ numbers because that maps to numbers beyond FIRST_PSEUDO_REGISTER.
+ Instead use the identity mapping. */
+#define DWARF_FRAME_REGNUM(REG) REG
+
+/* Before the prologue, the top of the frame is at 4(%sp). */
+#define INCOMING_FRAME_SP_OFFSET 4
+
/* This is how to output the definition of a user-level label named NAME,
such as the label on a static function or variable NAME. */