aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2005-03-15 05:28:17 +0000
committerEric Christopher <echristo@gmail.com>2005-03-15 05:28:17 +0000
commit5862107c33031d3a5ec20582e3f55cd2b2d21675 (patch)
tree2f3eb9c334cabedccd28d179d7ed2f4d4c7c3d8c /gas/config
parent729ae8d20e264b0b4577be580ab2349b0391383b (diff)
downloadgdb-5862107c33031d3a5ec20582e3f55cd2b2d21675.zip
gdb-5862107c33031d3a5ec20582e3f55cd2b2d21675.tar.gz
gdb-5862107c33031d3a5ec20582e3f55cd2b2d21675.tar.bz2
==> ChangeLog <==
2005-03-14 Eric Christopher <echristo@redhat.com> * config/tc-mips.c: Include dw2gencfi.h. (mips_cfi_frame_initial_instructions): New. * config/tc-mips.h (TARGET_USE_CFIPOP): Define. (tc_cfi_frame_initial_instructions): Ditto. (DWARF2_DEFAULT_RETURN_COLUMN): Ditto. (DWARF2_CIE_DATA_ALIGNMENT): Ditto. * Makefile.am: Update dependencies. * Makefile.in: Regenerate. ==> testsuite/ChangeLog <== 2005-03-14 Eric Christopher <echristo@redhat.com> * gas/cfi/cfi-mips-1.d, gas/cfi/cfi-mips-1.s: New dump test. * gas/cfi/cfi.exp: Run it. * gas/cfi/cfi-common-1.d: Update. * gas/cfi/cfi-common-2.d: Ditto. * gas/cfi/cfi-common-3.d: Ditto. * gas/cfi/cfi-common-4.d: Ditto.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c9
-rw-r--r--gas/config/tc-mips.h8
2 files changed, 17 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 655be76..84f58e3 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -33,6 +33,7 @@
#include "opcode/mips.h"
#include "itbl-ops.h"
#include "dwarf2dbg.h"
+#include "dw2gencfi.h"
#ifdef DEBUG
#define DBG(x) printf x
@@ -14016,3 +14017,11 @@ mips_dwarf2_addr_size (void)
else
return 4;
}
+
+/* Standard calling conventions leave the CFA at SP on entry. */
+void
+mips_cfi_frame_initial_instructions (void)
+{
+ cfi_add_CFA_def_cfa_register (SP);
+}
+
diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h
index 720f644..a5d5cf1 100644
--- a/gas/config/tc-mips.h
+++ b/gas/config/tc-mips.h
@@ -161,4 +161,12 @@ extern enum dwarf2_format mips_dwarf2_format (void);
extern int mips_dwarf2_addr_size (void);
#define DWARF2_ADDR_SIZE(bfd) mips_dwarf2_addr_size ()
+#define TARGET_USE_CFIPOP 1
+
+#define tc_cfi_frame_initial_instructions mips_cfi_frame_initial_instructions
+extern void mips_cfi_frame_initial_instructions (void);
+
+#define DWARF2_DEFAULT_RETURN_COLUMN 31
+#define DWARF2_CIE_DATA_ALIGNMENT -4
+
#endif /* TC_MIPS */