<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 --- - [MIPS] integrated-as doesn't parse FreeBSD's exception.S and crashes"
   href="https://llvm.org/bugs/show_bug.cgi?id=30383">30383</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[MIPS] integrated-as doesn't parse FreeBSD's exception.S and crashes
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sbruno@freebsd.org
          </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=17262" name="attach_17262" title="log output of build for FreeBSD mips kernel and diagnostic/crash files from clang.">attachment 17262</a> <a href="attachment.cgi?id=17262&action=edit" title="log output of build for FreeBSD mips kernel and diagnostic/crash files from clang.">[details]</a></span>
log output of build for FreeBSD mips kernel and diagnostic/crash files from
clang.

clang will fail to parse the nonsense we are doing in exception.S during out
mips builds and eventually will crash.  I've attached the full build output and
the diagnostic files to this ticket.  There's a lot going on here.

Function size must be evaluatable as absolute
UNREACHABLE executed at
/home/sbruno/clang/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp:908!
clang-4.0: error: unable to execute command: Abort trap (core dumped)
clang-4.0: error: clang integrated assembler command failed due to signal (use
-v to see invocation)
clang version 4.0.0 (trunk 281458)
Target: mips64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /home/sbruno/clang/build/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-4.0: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-4.0: note: diagnostic msg: /tmp/exception-9f94f0.S
clang-4.0: note: diagnostic msg: /tmp/exception-9f94f0.sh
clang-4.0: note: diagnostic msg: 

********************
--- exception.o ---
*** [exception.o] Error code 254</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>