This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/55544] invalid optimisation long long->double->long long (with -m32)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 Nov 2012 12:42:38 +0000
- Subject: [Bug c/55544] invalid optimisation long long->double->long long (with -m32)
- Auto-submitted: auto-generated
- References: <bug-55544-4@http.gcc.gnu.org/bugzilla/>
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.