diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-06-13 15:15:59 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-06-13 15:15:59 +0000 |
commit | bc87dfa03ba597b702d64ee0bd05fdf85475affb (patch) | |
tree | 94b2759a026ed299eab2ac5bc41ab2af38974d3c | |
parent | 15ac804d2f0b001dfcdf6113735ce8911ca1aab9 (diff) | |
download | gdb-bc87dfa03ba597b702d64ee0bd05fdf85475affb.zip gdb-bc87dfa03ba597b702d64ee0bd05fdf85475affb.tar.gz gdb-bc87dfa03ba597b702d64ee0bd05fdf85475affb.tar.bz2 |
2004-06-13 Andrew Cagney <cagney@gnu.org>
* values.c (generic_use_struct_convention): Don't check gcc_p.
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/values.c | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0c04768..001236f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2004-06-13 Andrew Cagney <cagney@gnu.org> + * values.c (generic_use_struct_convention): Don't check gcc_p. + * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE) (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete. * gdbarch.h, gdbarch.c: Regenerate. diff --git a/gdb/values.c b/gdb/values.c index 98631af..de3ce9f 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -1217,15 +1217,16 @@ value_from_double (struct type *type, DOUBLEST num) 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 !((gcc_p == 1) - && (TYPE_LENGTH (value_type) == 1 - || TYPE_LENGTH (value_type) == 2 - || TYPE_LENGTH (value_type) == 4 - || TYPE_LENGTH (value_type) == 8)); + 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 |