[LLVMbugs] [Bug 20871] New: clang tries to use 128-bit function __multi3 on 32-bit target

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Sep 6 14:52:13 PDT 2014


            Bug ID: 20871
           Summary: clang tries to use 128-bit function __multi3 on 32-bit
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: tor.klingberg at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13004
  --> http://llvm.org/bugs/attachment.cgi?id=13004&action=edit
The C source file that triggers the bug

When I try to compile a certain short C-file with clang for a 32-bit i386
target with optimization, I get this linker error:
/tmp/addup-b0948d.o:/home/tor/c/addup.c:function addup: error: undefined
reference to '__multi3'

As I understand it, __multi3 is a 128-bit function, and not available on 32-bit
i386. The C source does not use and 128-bit types, only 64-bit.

With the versions of clang-3.4 and 3.5 in the Ubuntu repositories, clang
segfaults instead. Reported here:

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/20140906/551caf4e/attachment.html>

More information about the llvm-bugs mailing list