[LLVMbugs] [Bug 16404] New: __int128_t multiply with -fsanitize=undefined fails to link (undefined reference to __muloti4)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 21 05:22:42 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16404

            Bug ID: 16404
           Summary: __int128_t multiply with -fsanitize=undefined fails to
                    link (undefined reference to __muloti4)
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: peter.maydell at linaro.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang fails to link code which does a multiply of two int128_t variables on
x86_64 if the code is compiled with -fsanitize=undefined : it fails with
"undefined reference to '__muloti4'. The same code compiles OK if the
-fsanitize argument is omitted:

cam-vm-266:precise:qemu$ cat /tmp/zz9.c
__int128_t a;
int main (void) {
  a = a * a;
  return 0;
}
cam-vm-266:precise:qemu$ clang /tmp/zz9.c -o /tmp/zz9
cam-vm-266:precise:qemu$ clang /tmp/zz9.c -fsanitize=undefined -o /tmp/zz9
/tmp/zz9-eAeaq5.o: In function `main':
/tmp/zz9.c:(.text+0x3b): undefined reference to `__muloti4'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
cam-vm-266:precise:qemu$ clang --version
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix

(I'm using the prebuilt clang binaries on Ubuntu 12.04:
http://llvm.org/releases/3.3/clang+llvm-3.3-amd64-Ubuntu-12.04.2.tar.gz)

-- 
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/20130621/72d925aa/attachment.html>


More information about the llvm-bugs mailing list