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

             Bug #: 12160
           Summary: clang -O2 implies -fno-math-errno but doesn't set
                    math_errhandling properly
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Created attachment 8132
  --> http://llvm.org/bugs/attachment.cgi?id=8132
test case

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

With the attached test case I get:

$ clang -O2 -o sq sq.c -lm && ./sq
fail

... because clang -O2 implies -fno-math-errno which disables proper errno
handling for math functions, but math_errhandling still has the MATH_ERRNO bit
set.

I'm using svn trunk r151520 on Ubuntu 11.10 x86_64.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to