<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang tries to use 128-bit function __multi3 on 32-bit target"
   href="http://llvm.org/bugs/show_bug.cgi?id=20871">20871</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang tries to use 128-bit function __multi3 on 32-bit target
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tor.klingberg@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13004" name="attach_13004" title="The C source file that triggers the bug">attachment 13004</a> <a href="attachment.cgi?id=13004&action=edit" title="The C source file that triggers the bug">[details]</a></span>
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:
<a href="https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-snapshot/+bug/1365701">https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-snapshot/+bug/1365701</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>