diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-09-16 23:33:17 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-09-16 23:33:17 +0000 |
commit | b9ff3018cd573e009421f7aa357ebba6345adf42 (patch) | |
tree | 7835603ea6841d08231ff33a8a405ca6979ac588 /gdb/ppc-sysv-tdep.c | |
parent | aa1ee363bce1eac43bf9824069e231d7113f7453 (diff) | |
download | gdb-b9ff3018cd573e009421f7aa357ebba6345adf42.zip gdb-b9ff3018cd573e009421f7aa357ebba6345adf42.tar.gz gdb-b9ff3018cd573e009421f7aa357ebba6345adf42.tar.bz2 |
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.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c index 777cbbc..622bc65 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 |