This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r153468 - in /branches/ibm/gcc-4_3-branch/gcc: ...
- From: janis at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 22 Oct 2009 18:24:32 -0000
- Subject: r153468 - in /branches/ibm/gcc-4_3-branch/gcc: ...
Author: janis
Date: Thu Oct 22 18:24:31 2009
New Revision: 153468
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153468
Log:
Backport from 4.3 branch:
2009-09-21 Janis Johnson <janis187@us.ibm.com>
PR c/41049
* real.c decimal_from_integer, decimal_integer_string): New.
(real_from_integer): Use them as special case for decimal float.
* config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
(_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
Do not append zero after the decimal point in string to convert.
* gcc.dg/dfp/pr41049.c: New test.
Added:
branches/ibm/gcc-4_3-branch/gcc/testsuite/gcc.dg/dfp/pr41049.c
Modified:
branches/ibm/gcc-4_3-branch/gcc/ChangeLog.ibm
branches/ibm/gcc-4_3-branch/gcc/config/dfp-bit.c
branches/ibm/gcc-4_3-branch/gcc/real.c
branches/ibm/gcc-4_3-branch/gcc/testsuite/ChangeLog.ibm