This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[Get raw message]
PATCH: S/390 coerces floats to doubles in the standard way
- To: gdb-patches at sources dot redhat dot com
- Subject: PATCH: S/390 coerces floats to doubles in the standard way
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: Tue, 13 Nov 2001 12:25:15 -0500 (EST)
2001-11-13 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_gdbarch_init): Register the function
`standard_coerce_float_to_double', since GCC for the S/390 follows
the standard rules for passing floats.
Index: gdb/s390-tdep.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/s390-tdep.c,v
retrieving revision 2.9
diff -c -r2.9 s390-tdep.c
*** gdb/s390-tdep.c 2001/11/09 19:11:57 2.9
--- gdb/s390-tdep.c 2001/11/13 17:15:03
***************
*** 1454,1459 ****
--- 1454,1461 ----
set_gdbarch_sizeof_call_dummy_words (gdbarch,
sizeof (s390_call_dummy_words));
set_gdbarch_call_dummy_words (gdbarch, s390_call_dummy_words);
+ set_gdbarch_coerce_float_to_double (gdbarch,
+ standard_coerce_float_to_double);
switch (info.bfd_arch_info->mach)
{