diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-13 00:06:54 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-13 00:06:54 +0000 |
commit | c187492465e6fd60ebf2f4710944fa7b6a679a02 (patch) | |
tree | eec7dd560967a03c06b750d01305d552254d35f6 /gdb/value.c | |
parent | 4c8b6ae009ad0e664cb1ec681e58c4a942fa4915 (diff) | |
download | gdb-c187492465e6fd60ebf2f4710944fa7b6a679a02.zip gdb-c187492465e6fd60ebf2f4710944fa7b6a679a02.tar.gz gdb-c187492465e6fd60ebf2f4710944fa7b6a679a02.tar.bz2 |
* gdbarch.sh (deprecated_use_struct_convention): Remove.
(extract_return_value, store_return_value): Remove.
(return_value): Remove default implementation.
* gdbarch.c, gdbarch.h: Regenerate.
* stack.c (return_command): Remove compatibility hack.
* arch-utils.c (legacy_return_value): Remove.
* arch-utils.h (legacy_return_value): Likewise.
* arch-utils.c (always_use_struct_convention): Remove.
* arch-utils.h (always_use_struct_convention): Likewise.
* value.c (generic_use_struct_convention): Remove.
* defs.h (generic_use_struct_convention): Likewise.
doc/ChangeLog:
* gdbint.texi (Target Conditionals): Remove documentation
of and references to DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS,
gdbarch_extract_return_value, and gdbarch_store_return_value.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gdb/value.c b/gdb/value.c index 656c5ea..7085ec1 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1681,32 +1681,6 @@ coerce_enum (struct value *arg) } -/* Should we use DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS instead of - gdbarch_extract_return_value? GCC_P is true if compiled with gcc and TYPE - is the type (which is known to be struct, union or array). - - On most machines, the struct convention is used unless we are - using gcc and the type is of a special size. */ -/* As of about 31 Mar 93, GCC was changed to be compatible with the - native compiler. GCC 2.3.3 was the last release that did it the - old way. Since gcc2_compiled was not changed, we have no - way to correctly win in all cases, so we just do the right thing - for gcc1 and for gcc2 after this change. Thus it loses for gcc - 2.0-2.3.3. This is somewhat unfortunate, but changing gcc2_compiled - would cause more chaos than dealing with some struct returns being - handled wrong. */ -/* NOTE: cagney/2004-06-13: Deleted check for "gcc_p". GCC 1.x is - dead. */ - -int -generic_use_struct_convention (int gcc_p, struct type *value_type) -{ - return !(TYPE_LENGTH (value_type) == 1 - || TYPE_LENGTH (value_type) == 2 - || TYPE_LENGTH (value_type) == 4 - || TYPE_LENGTH (value_type) == 8); -} - /* Return true if the function returning the specified type is using the convention of returning structures in memory (passing in the address as a hidden first parameter). */ |