[LLVMbugs] [Bug 6987] New: Missing builtins prevent compiling <cmath> in g++ 4.4.3
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 30 02:40:40 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6987
Summary: Missing builtins prevent compiling <cmath> in g++
4.4.3
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Compiling <cmath> on g++ 4.4.3 requires the intrinsics:
__builtin_isfinite
__builtin_fpclassify
__builtin_isfinite is, I hope, self-explanitory. __builtin_fpclassify is
exactly what is required to implement fpclassify.
If you have trouble reproducing this, make sure your 'bits' directory is set up
correctly. In 4.4 it includes:
#define _GLIBCXX_USE_C99_MATH 1
#define _GLIBCXX_USE_C99_MATH_TR1 1
I discovered this as it also blocks boost on my system, which uses <cmath> in
some places.
--
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