This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21781] real.c incorrectly values zero with a large exponent
- From: "sayle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2006 16:34:09 -0000
- Subject: [Bug middle-end/21781] real.c incorrectly values zero with a large exponent
- References: <bug-21781-6@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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