[LLVMbugs] [Bug 18008] New: feraiseexcept is stripped out of C++ programs
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 20 13:13:55 PST 2013
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: unassignedclangbugs at nondot.org
Reporter: tjablin at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131120/1b4cc02a/attachment.html>
More information about the llvm-bugs
mailing list