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 c/55544] invalid optimisation long long->double->long long (with -m32)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55544

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-30 12:42:38 UTC ---
You need to use -fexcess-precision=standard or -std=c99 on i?86, the default is
-fexcess-precision=fast unless -std=c99 (even for -std=gnu99).
Otherwise it might be evaluated with excess precision, and the number in
question fits into the 80-bit long double just fine.


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