* fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 9 Sep 2002 01:51:45 +0000 (01:51 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 9 Sep 2002 01:51:45 +0000 (01:51 +0000)
From-SVN: r56959

gcc/ChangeLog
gcc/config/fr30/fr30.c

index 9a2754e3c5e902076239eb2bf729cc5b97220733..5e0d2fe1c36538b690f87ce8c0984ec13b0e8307 100644 (file)
@@ -1,3 +1,7 @@
+2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
+
 2002-09-08  Richard Henderson  <rth@redhat.com>
 
        * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
index f217534a308b43e2e9f0093c9b84fd5d57c7d56b..47c2a27dc40d4ee09283d83e60177bba353b297c 100644 (file)
@@ -555,9 +555,11 @@ fr30_print_operand (file, x, code)
       else
        {
          REAL_VALUE_TYPE d;
+         char str[30];
 
          REAL_VALUE_FROM_CONST_DOUBLE (d, x);
-         fprintf (file, "%.8f", d);
+         REAL_VALUE_TO_DECIMAL (d, str, 8);
+         fputs (str, file);
        }
       return;