This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obvious]: sh-tdep.c: Remove calls to deprecated floating functions


Applied as obvious:

        * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
        deprecated_store_floating by call to store_typed_floating.
        (sh_sh4_register_convert_to_raw): Substitute call to
        deprecated_extract_floating by call to extract_typed_floating.

Corinna

Index: sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.133
diff -u -p -r1.133 sh-tdep.c
--- sh-tdep.c   9 Jul 2003 22:23:57 -0000       1.133
+++ sh-tdep.c   16 Jul 2003 09:26:25 -0000
@@ -3405,7 +3351,7 @@ sh_sh4_register_convert_to_virtual (int 
     {
       DOUBLEST val;
       floatformat_to_doublest (&floatformat_ieee_double_littlebyte_bigword, from, &val);
-      deprecated_store_floating (to, TYPE_LENGTH (type), val);
+      store_typed_floating (to, type, val);
     }
   else
     error ("sh_register_convert_to_virtual called with non DR register number");
@@ -3446,7 +3392,7 @@ sh_sh4_register_convert_to_raw (struct t
   if (regnum >= tdep->DR0_REGNUM 
       && regnum <= tdep->DR_LAST_REGNUM)
     {
-      DOUBLEST val = deprecated_extract_floating (from, TYPE_LENGTH(type));
+      DOUBLEST val = extract_typed_floating (from, type);
       floatformat_from_doublest (&floatformat_ieee_double_littlebyte_bigword, &val, to);
     }
   else   

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com


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