* config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 22 Apr 2003 23:04:40 +0000 (23:04 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 22 Apr 2003 23:04:40 +0000 (23:04 +0000)
        Update all the tests using SOFT_FLOAT considering the fact that
        this macro was always set to 0.
        * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
        considering the fact that this macro was always set to 0.
        * hppa-tdep.h (hppa_store_return_value): Likewise.
        (hppa_extract_return_value): Likewise.

gdb/ChangeLog
gdb/config/pa/tm-hppa.h
gdb/config/pa/tm-hppa64.h
gdb/hppa-tdep.c

index 729624d9ea960fc98c360c3cb78bf5d3ff587aa4..cfbd9ce5fe75b6438d6b64b108e0dcc4f6f1f938 100644 (file)
@@ -1,3 +1,13 @@
+2003-04-22  J. Brobecker  <brobecker@gnat.com>
+
+       * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
+       Update all the tests using SOFT_FLOAT considering the fact that
+       this macro was always set to 0. 
+       * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
+       considering the fact that this macro was always set to 0.
+       * hppa-tdep.h (hppa_store_return_value): Likewise.
+       (hppa_extract_return_value): Likewise.
+
 2003-04-22  J. Brobecker  <brobecker@gnat.com>
 
        * config/pa/tm-hppa.h: Remove obsolete code, was used by
index f476d89f008133ed07fcf9d8fa1db3436b558a65..8646ab0dab342fcfa8b8c739be5fa94bdb5e1bd4 100644 (file)
@@ -45,11 +45,6 @@ struct value;
 struct type;
 struct inferior_status;
 
-/* By default assume we don't have to worry about software floating point.  */
-#ifndef SOFT_FLOAT
-#define SOFT_FLOAT 0
-#endif
-
 /* Get at various relevent fields of an instruction word. */
 
 #define MASK_5 0x1f
index 3a0f282799d795ca7e8b47111e741dbdce571dba..48d41d355f49efffd0cb613aaa137533dfb7097b 100644 (file)
@@ -537,12 +537,12 @@ call_dummy
  */ 
 #define DEPRECATED_EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
   { \
-    if (TYPE_CODE (TYPE) == TYPE_CODE_FLT && !SOFT_FLOAT) \
+    if (TYPE_CODE (TYPE) == TYPE_CODE_FLT) \
       memcpy ((VALBUF), \
              ((char *)(REGBUF)) + REGISTER_BYTE (FP4_REGNUM) + \
               (REGISTER_SIZE - TYPE_LENGTH (TYPE)), \
              TYPE_LENGTH (TYPE)); \
-    else if  (is_integral_type(TYPE) || SOFT_FLOAT)   \
+    else if  (is_integral_type(TYPE))   \
        memcpy ((VALBUF), \
                (char *)(REGBUF) + REGISTER_BYTE (28) + \
                (REGISTER_SIZE - TYPE_LENGTH (TYPE)), \
@@ -571,13 +571,13 @@ call_dummy
 #undef DEPRECATED_STORE_RETURN_VALUE
 #define DEPRECATED_STORE_RETURN_VALUE(TYPE,VALBUF) \
   { \
-    if (TYPE_CODE (TYPE) == TYPE_CODE_FLT && !SOFT_FLOAT) \
+    if (TYPE_CODE (TYPE) == TYPE_CODE_FLT) \
       deprecated_write_register_bytes \
              (REGISTER_BYTE (FP4_REGNUM) + \
               (REGISTER_SIZE - TYPE_LENGTH (TYPE)), \
               (VALBUF), \
              TYPE_LENGTH (TYPE)); \
-    else if (is_integral_type(TYPE) || SOFT_FLOAT)   \
+    else if (is_integral_type(TYPE))   \
        deprecated_write_register_bytes \
               (REGISTER_BYTE (28) + \
                  (REGISTER_SIZE - TYPE_LENGTH (TYPE)), \
index affc5d3aa8c0f9e83fd132130999726264d1ad33..482e4751fa153421ada3132674d26f99b4e2c57f 100644 (file)
@@ -4763,7 +4763,7 @@ hppa_store_return_value (struct type *type, char *valbuf)
                                      ? (8 - TYPE_LENGTH (type))
                                      : (4 - TYPE_LENGTH (type))),
                                   valbuf, TYPE_LENGTH (type));
-  if (! SOFT_FLOAT && TYPE_CODE (type) == TYPE_CODE_FLT)
+  if (TYPE_CODE (type) == TYPE_CODE_FLT)
     deprecated_write_register_bytes (REGISTER_BYTE (FP4_REGNUM),
                                     valbuf, TYPE_LENGTH (type));
 }
@@ -4778,7 +4778,7 @@ hppa_store_return_value (struct type *type, char *valbuf)
 void
 hppa_extract_return_value (struct type *type, char *regbuf, char *valbuf)
 {
-  if (! SOFT_FLOAT && TYPE_CODE (type) == TYPE_CODE_FLT)
+  if (TYPE_CODE (type) == TYPE_CODE_FLT)
     memcpy (valbuf,
            (char *)regbuf + REGISTER_BYTE (FP4_REGNUM),
            TYPE_LENGTH (type));
This page took 0.043273 seconds and 4 git commands to generate.