This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project. [Get raw message]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: S/390 coerces floats to doubles in the standard way



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)
      {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]