diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-03-25 20:38:47 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-03-25 20:38:47 +0000 |
commit | 4183d8120459822e219461c82c295e7571eee4f5 (patch) | |
tree | 656faddf5034ce53b3d45ce47858e89aa2cdcd8b /gdb/valops.c | |
parent | 1bf6d5cced30fb7670ad45b0b51a2ea77ec3dc4b (diff) | |
download | gdb-4183d8120459822e219461c82c295e7571eee4f5.zip gdb-4183d8120459822e219461c82c295e7571eee4f5.tar.gz gdb-4183d8120459822e219461c82c295e7571eee4f5.tar.bz2 |
2003-03-25 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
STORE_STRUCT_RETURN.
* gdbarch.h, gdbarch.c: Regenerate.
* d10v-tdep.c (d10v_store_struct_return): Delete function.
(d10v_push_arguments): Set the struct return register.
(d10v_gdbarch_init): Update.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
* x86-64-tdep.c (x86_64_init_abi): Update.
* vax-tdep.c (vax_gdbarch_init): Update.
* v850-tdep.c (v850_gdbarch_init): Update.
* sparc-tdep.c (sparc_gdbarch_init): Update.
* sh-tdep.c (sh_gdbarch_init): Update.
* s390-tdep.c (s390_gdbarch_init): Update.
* rs6000-tdep.c (rs6000_gdbarch_init): Update.
* ns32k-tdep.c (ns32k_gdbarch_init): Update.
* mn10300-tdep.c (mn10300_gdbarch_init): Update.
* mips-tdep.c (mips_gdbarch_init): Update.
* mcore-tdep.c (mcore_gdbarch_init): Update.
* m68k-tdep.c (m68k_gdbarch_init): Update.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
* ia64-tdep.c (ia64_gdbarch_init): Update.
* i386-tdep.c (i386_gdbarch_init): Update.
* hppa-tdep.c (hppa_gdbarch_init): Update.
* h8300-tdep.c (h8300_gdbarch_init): Update.
* frv-tdep.c (frv_gdbarch_init): Update.
* cris-tdep.c (cris_gdbarch_init): Update.
* avr-tdep.c (avr_gdbarch_init): Update.
* arm-tdep.c (arm_gdbarch_init): Update.
* alpha-tdep.c (alpha_gdbarch_init): Update.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 90ad7ba..f6c83ac 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1654,16 +1654,11 @@ You must use a pointer to function type variable. Command ignored.", arg_name); } /* Store the address at which the structure is supposed to be - written. Note that this (and the code which reserved the space - above) assumes that gcc was used to compile this function. Since - it doesn't cost us anything but space and if the function is pcc - it will ignore this value, we will make that assumption. - - Also note that on some machines (like the sparc) pcc uses a - convention like gcc's. */ - - if (struct_return) - STORE_STRUCT_RETURN (struct_addr, sp); + written. */ + /* NOTE: 2003-03-24: Since PUSH_ARGUMENTS can (and typically does) + store the struct return address, this call is entirely redundant. */ + if (struct_return && DEPRECATED_STORE_STRUCT_RETURN_P ()) + DEPRECATED_STORE_STRUCT_RETURN (struct_addr, sp); /* Write the stack pointer. This is here because the statements above might fool with it. On SPARC, this write also stores the register |