[LLVMbugs] [Bug 11858] clang should not default to -fno-math-errno

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 2 01:19:02 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11858

Jay Foad <jay.foad at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Jay Foad <jay.foad at gmail.com> 2012-03-02 03:19:02 CST ---
There are several issues here:

1. On Linux, clang -fno-math-errno doesn't arrange for math_errhandling to be
set appropriately. I've raised this as PR12160.

2. On Darwin, libm doesn't support errno at all, so you should get an error or
warning if you try to compile with -fmath-errno. I've raised this as PR 12161.

3. I'm not a big fan of -O implying -fno-math-errno. But it's not a bug, and I
haven't found anyone who agrees with me, so I'll drop this complaint.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list