From cccf6074b88885dbcb31eee8ac889a69a0f51283 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 16 Sep 2003 23:33:17 +0000 Subject: 2003-09-16 Andrew Cagney * 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. --- gdb/ppc-sysv-tdep.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'gdb/ppc-sysv-tdep.c') 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 -- cgit v1.2.1