[Bug middle-end/21781] real.c incorrectly values zero with a large exponent
sayle at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Mar 16 16:34:00 GMT 2006
------- Comment #2 from sayle at gcc dot gnu dot org 2006-03-16 16:34 -------
Subject: Bug 21781
Author: sayle
Date: Thu Mar 16 16:34:05 2006
New Revision: 112136
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112136
Log:
PR middle-end/21781
* real.c (real_from_string): If the mantissa is zero, don't bother
parsing the exponent as the result should always be zero.
* gcc.dg/real-const-1.c: New test case.
Added:
trunk/gcc/testsuite/gcc.dg/real-const-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/real.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21781
More information about the Gcc-bugs
mailing list