summaryrefslogtreecommitdiff
path: root/gdb/ppc-sysv-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-09-16 23:33:17 +0000
committerAndrew Cagney <cagney@redhat.com>2003-09-16 23:33:17 +0000
commitcccf6074b88885dbcb31eee8ac889a69a0f51283 (patch)
tree5e40f31e01627f895ca17a220d385ee58e19a57f /gdb/ppc-sysv-tdep.c
parent90c0087981998f21c7d6b95f3c86ccc2cc4829f7 (diff)
downloadgdb-cccf6074b88885dbcb31eee8ac889a69a0f51283.tar.gz
2003-09-16 Andrew Cagney <cagney@redhat.com>
* ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit "use_struct_convention" to "ppc_linux_use_struct_convention". (ppc_linux_use_struct_convention): New function. * rs6000-tdep.c (rs6000_use_struct_convention): New function. (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to "rs6000_use_struct_convention". * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete declaration. * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention): Delete function.
Diffstat (limited to 'gdb/ppc-sysv-tdep.c')
-rw-r--r--gdb/ppc-sysv-tdep.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c
index 777cbbc044b..622bc651f2b 100644
--- a/gdb/ppc-sysv-tdep.c
+++ b/gdb/ppc-sysv-tdep.c
@@ -329,20 +329,6 @@ ppc_sysv_abi_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr,
return sp;
}
-/* Until November 2001, gcc was not complying to the SYSV ABI for
- returning structures less than or equal to 8 bytes in size. It was
- returning everything in memory. When this was corrected, it wasn't
- fixed for native platforms. */
-int
-ppc_sysv_abi_broken_use_struct_convention (int gcc_p, struct type *value_type)
-{
- if ((TYPE_LENGTH (value_type) == 16 || TYPE_LENGTH (value_type) == 8)
- && TYPE_VECTOR (value_type))
- return 0;
-
- return generic_use_struct_convention (gcc_p, value_type);
-}
-
/* Structures 8 bytes or less long are returned in the r3 & r4
registers, according to the SYSV ABI. */
int