aboutsummaryrefslogtreecommitdiff
path: root/gdb/cris-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-01-17 18:52:33 +0000
committerAndrew Cagney <cagney@redhat.com>2004-01-17 18:52:33 +0000
commit6b4d5c9185dd80e1bafdd846aee307f33996e4c5 (patch)
tree4f2f3b59115b5f4a2834471712d29cefdca79162 /gdb/cris-tdep.c
parent464e0365d26d6de5eaa70d14c69a3028ed222deb (diff)
downloadgdb-6b4d5c9185dd80e1bafdd846aee307f33996e4c5.zip
gdb-6b4d5c9185dd80e1bafdd846aee307f33996e4c5.tar.gz
gdb-6b4d5c9185dd80e1bafdd846aee307f33996e4c5.tar.bz2
2004-01-17 Andrew Cagney <cagney@redhat.com>
* cris-tdep.c: Update copyright. (cris_extract_struct_value_address): Delete function. (struct_return_address): Delete variable. (cris_store_struct_return): Do not set struct_return_address.
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r--gdb/cris-tdep.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 0b1005f..14ecb61 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -1,5 +1,7 @@
/* Target dependent code for CRIS, for GDB, the GNU debugger.
- Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+
+ Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+
Contributed by Axis Communications AB.
Written by Hendrik Ruijter, Stefan Andersson, and Orjan Friberg.
@@ -176,9 +178,6 @@ cris_abi (void)
return (gdbarch_tdep (current_gdbarch)->cris_abi);
}
-/* For saving call-clobbered contents in R9 when returning structs. */
-static CORE_ADDR struct_return_address;
-
struct frame_extra_info
{
CORE_ADDR return_pc;
@@ -1077,29 +1076,6 @@ cris_abi_v2_extract_return_value (struct type *type, char *regbuf,
internal_error (__FILE__, __LINE__, "cris_abi_v2_extract_return_value: type length too large");
}
-/* Store the address of the place in which to copy the structure the
- subroutine will return. In the CRIS ABI, R9 is used in order to pass
- the address of the allocated area where a structure return value must
- be stored. R9 is call-clobbered, which means we must save it here for
- later use. */
-
-static void
-cris_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
-{
- write_register (STR_REGNUM, addr);
- struct_return_address = addr;
-}
-
-/* Extract from regbuf the address where a function should return a
- structure value. It's not there in the CRIS ABI, so we must do it another
- way. */
-
-static CORE_ADDR
-cris_extract_struct_value_address (char *regbuf)
-{
- return struct_return_address;
-}
-
/* Returns 1 if the given type will be passed by pointer rather than
directly. */