* s390-tdep.c: Tweak argument-passing to match GCC bugs.
authorJim Blandy <jimb@codesourcery.com>
Fri, 16 Nov 2001 21:40:36 +0000 (21:40 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 16 Nov 2001 21:40:36 +0000 (21:40 +0000)
commit20a940cc8c7878821b93e69069918b327047a34e
treebd6f4f78b8e6db65e77f497926109797f542e2f9
parente5d63811333b28671614cc7e6b7a4315030c0ae3
* s390-tdep.c: Tweak argument-passing to match GCC bugs.
(is_float_singleton, is_struct_like, is_float_like): New
functions, that isolate the weirdness.
(is_double_or_float, is_simple_arg, pass_by_copy_ref,
is_double_arg): Use is_struct_like and is_float_like, rather than
testing the type codes ourselves.
(s390_push_arguments): When passing args on the stack, align each
on to a four-byte boundary, regardless of what the type itself
needs.
gdb/ChangeLog
gdb/s390-tdep.c