[LLVMbugs] [Bug 12161] New: you shouldn't be able to set -fmath-errno if your libm doesn't support errno

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 2 01:15:18 PST 2012


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

             Bug #: 12161
           Summary: you shouldn't be able to set -fmath-errno if your libm
                    doesn't support errno
           Product: clang
           Version: 3.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jay.foad at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


(I've split this specific issue out from PR11858.)

On systems like Darwin where libm doesn't support setting errno, it makes no
sense to compile with -fmath-errno, because the compiler can't possibly
guarantee that math functions will set errno. So on such systems the option
shouldn't exists, or you should get an error or a warning if you try to set it.

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