diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-09-09 01:51:45 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-09-09 01:51:45 +0000 |
commit | c1b4f089aafe212fbde1d81a9c38a41e1df26a2d (patch) | |
tree | cef098b3207448dbc1f1edbed7179e0716ba7df7 | |
parent | b920346356d7cf23f96d0b5abfca6b43b677bcf5 (diff) | |
download | gcc-c1b4f089aafe212fbde1d81a9c38a41e1df26a2d.zip gcc-c1b4f089aafe212fbde1d81a9c38a41e1df26a2d.tar.gz gcc-c1b4f089aafe212fbde1d81a9c38a41e1df26a2d.tar.bz2 |
* fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
From-SVN: r56959
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/fr30/fr30.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a2754e..5e0d2fe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/fr30/fr30.c b/gcc/config/fr30/fr30.c index f217534..47c2a27 100644 --- a/gcc/config/fr30/fr30.c +++ b/gcc/config/fr30/fr30.c @@ -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; |