http://llvm.org/bugs/show_bug.cgi?id=18008
Bug ID: 18008
Summary: feraiseexcept is stripped out of C++ programs
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
feraiseexcept is stripped out of C++ (but not C programs). Here is a simple
test case:
echo -e "#include <fenv.h>\\n void foo(void) { feraiseexcept(1); }" | clang -x
c++ -emit-llvm -S -o - - -O2
The underlying problem is that clang is resolving renamed symbols in the wrong
way. fenv.h says:
int feraiseexcept_renamed(void) __asm__ ("" "feraiseexcept");
extern inline int feraiseexcept(void) {
...
return feraiseexcept_renamed();
}
In gcc, the call to feraiseexcept_renamed resolves to the external version of
feraiseexcept. In clang, the call to feraiseexcept_renamed resolves to the
inlined version.
--
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