OSDN Git Service

* fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Sep 2002 01:51:45 +0000 (01:51 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Sep 2002 01:51:45 +0000 (01:51 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56959 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 9a2754e..5e0d2fe 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 f217534..47c2a27 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;