<html>
    <head>
      <base href="https://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-cl generates a call to an undefined symbol __udivti3"
   href="https://llvm.org/bugs/show_bug.cgi?id=25305">25305</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang-cl generates a call to an undefined symbol __udivti3
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>drivehappy@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15150" name="attach_15150" title="Build with: clang-cl main.c">attachment 15150</a> <a href="attachment.cgi?id=15150&action=edit" title="Build with: clang-cl main.c">[details]</a></span>
Build with: clang-cl main.c

While attempting to build a (very) old version of libtomcrypt with Clang-cl
(64-bit r250698), it appears a call to an undefined function is being
generated:

main-ff9827.obj : error LNK2019: unresolved external symbol __udivti3
referenced in function main

I've attached a minimal reproduce case. This appears to be due to the
"__attribute__((mode(TI)))" on the typedef.</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>