[LLVMbugs] [Bug 12160] New: clang -O2 implies -fno-math-errno but doesn't set math_errhandling properly
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 2 01:12:01 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: jay.foad at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list