[LLVMbugs] [Bug 16707] New: undefined reference to `__sqrtl_finite' when using LLVM with Linaro's GCC-4.7
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 25 15:47:48 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16707
Bug ID: 16707
Summary: undefined reference to `__sqrtl_finite' when using
LLVM with Linaro's GCC-4.7
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: winglet13 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
sqrtl.c:
#include <math.h>
int main(){
volatile long double a=123;
volatile long double c;
c = sqrtl(a);
return c;
}
LLVM generates call to __sqrtl_finite, but GCC, at -O0 generates call to sqrt.
LLVM:
clang
--sysroot=<PATH_TO_GCC47>/gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux
-O3 -ffast-math -fmath-errno -marm sqrtl.c -S -o clang.s -mfloat-abi=hard
arm-linux-gnueabihf-g++ -O3 -ffast-math -fmath-errno -marm clang.s -lm
/tmp/ccHQeKP4.o: In function `main':
sqrtl.c:(.text+0x24): undefined reference to `__sqrtl_finite'
collect2: error: ld returned 1 exit status
GCC-4.7:
arm-linux-gnueabihf-g++ -O0 -ffast-math -fmath-errno -marm sqrtl.c -S -o gcc.s
--
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/20130725/827a2748/attachment.html>
More information about the llvm-bugs
mailing list