gcc/
commit3c9085936228ac479154971fc23f5fbf2e85af0c
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2009 17:07:24 +0000 (17 17:07 +0000)
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2009 17:07:24 +0000 (17 17:07 +0000)
tree76332f90632195d93b999cee84b8426bd071c7d0
parentc3ab1ea8f83f0dd64d0ad48aaad4b40ee7a4720f
gcc/
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/testsuite/
PR c/41049
* dfp/pr41049.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151806 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/dfp-bit.c
gcc/real.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/dfp/pr41049.c [new file with mode: 0644]