This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/48139] __builtin_lrintf() becomes a library call, not an cvtss2si instruction
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Mar 2011 10:52:09 +0000
- Subject: [Bug target/48139] __builtin_lrintf() becomes a library call, not an cvtss2si instruction
- Auto-submitted: auto-generated
- References: <bug-48139-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48139
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-16 10:52:04 UTC ---
You need to use -fno-math-errno as lrint can set EDOM according to C99 7.12.9.5
(we don't have a facility to make errno behavior match the C library
implementation exactly).
-fno-math-errno is included in -ffast-math.