This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/21781] real.c incorrectly values zero with a large exponent



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]