<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:daniel.sanders@imgtec.com" title="Daniel Sanders &lt;daniel.sanders&#64;imgtec.com&gt;"> <span class="fn">Daniel Sanders</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED " title="REOPENED --- - clang 3.7 crash, Not supported Instruction" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23662&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=ebFTFVS6eGAYcD2mlqro18V1Yt9gAW7YwJ2bVRPDTf0&s=ctlHRqp7cY1JLb_CLNNgeQXIVVcTnfYtwCZgEiv-C30&e=">bug 23662</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>WORKSFORME
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED " title="REOPENED --- - clang 3.7 crash, Not supported Instruction" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23662-23c3&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=ebFTFVS6eGAYcD2mlqro18V1Yt9gAW7YwJ2bVRPDTf0&s=JaN_bx8OCQTVwqC3HUqjf29RYCiQ2OLCG1QyjPlNBc4&e=">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED " title="REOPENED --- - clang 3.7 crash, Not supported Instruction" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23662&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=ebFTFVS6eGAYcD2mlqro18V1Yt9gAW7YwJ2bVRPDTf0&s=ctlHRqp7cY1JLb_CLNNgeQXIVVcTnfYtwCZgEiv-C30&e=">bug 23662</a>
              from <span class="vcard"><a class="email" href="mailto:daniel.sanders@imgtec.com" title="Daniel Sanders &lt;daniel.sanders&#64;imgtec.com&gt;"> <span class="fn">Daniel Sanders</span></a>
</span></b>
        <pre>It still fails for me on current trunk. It triggers the N32/N64 on a mips-*
triple assertion which will take a while to fix (it needs the
Triple->TargetTuple project to finish) to be fixable. You could work around it
using -march=mips2. This should produce what you want except the ELF header
will say mips2 rather than mips3.

clang:
/mnt/scratch/das/llvm-upstream/llvm.src/lib/Target/Mips/MipsSubtarget.cpp:94:
llvm::MipsSubtarget::MipsSubtarget(const llvm::Triple&, const string&, const
string&, bool, const llvm::MipsTargetMachine&): Assertion `((!isGP64bit() &&
(isABI_O32() || isABI_EABI())) || (isGP64bit() && (isABI_N32() ||
isABI_N64()))) && "Invalid  Arch & ABI pair."' failed.
0  libLLVMSupport.so.3.8       0x00007fed513fe2d0
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 44
1  libLLVMSupport.so.3.8       0x00007fed513fe64c
2  libLLVMSupport.so.3.8       0x00007fed513fcf0c
llvm::sys::RunSignalHandlers() + 118
3  libLLVMSupport.so.3.8       0x00007fed513fd331
4  libc.so.6                   0x00007fed4e3cb180
5  libc.so.6                   0x00007fed4e3cb107 gsignal + 55
6  libc.so.6                   0x00007fed4e3cc4e8 abort + 328
7  libc.so.6                   0x00007fed4e3c4226
8  libc.so.6                   0x00007fed4e3c42d2
9  libLLVMMipsCodeGen.so.3.8   0x00007fed5ba5df32
llvm::MipsSubtarget::MipsSubtarget(llvm::Triple const&, std::string const&,
std::string const&, bool, llvm::MipsTargetMachine const&) + 1210
10 libLLVMMipsCodeGen.so.3.8   0x00007fed5ba5fcbc
llvm::MipsTargetMachine::MipsTargetMachine(llvm::Target const&, llvm::Triple
const&, llvm::StringRef, llvm::StringRef, llvm::TargetOptions const&,
llvm::Reloc::Model, llvm::CodeModel::Model, llvm::CodeGenOpt::Level, bool) +
588
11 libLLVMMipsCodeGen.so.3.8   0x00007fed5ba60049
llvm::MipsebTargetMachine::MipsebTargetMachine(llvm::Target const&,
llvm::Triple const&, llvm::StringRef, llvm::StringRef, llvm::TargetOptions
const&, llvm::Reloc::Model, llvm::CodeModel::Model, llvm::CodeGenOpt::Level) +
93
12 libLLVMMipsCodeGen.so.3.8   0x00007fed5ba645ba
13 libclangCodeGen.so.3.8      0x00007fed4fc69d51
14 libclangCodeGen.so.3.8      0x00007fed4fc684ed
15 libclangCodeGen.so.3.8      0x00007fed4fc68832
16 libclangCodeGen.so.3.8      0x00007fed4fc68c7c
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 127
17 libclangCodeGen.so.3.8      0x00007fed4fe8c3dc
18 libclangParse.so.3.8        0x00007fed4a1371ce clang::ParseAST(clang::Sema&,
bool, bool) + 787
19 libclangFrontend.so.3.8     0x00007fed4f3f1316
clang::ASTFrontendAction::ExecuteAction() + 322
20 libclangCodeGen.so.3.8      0x00007fed4fe8a5ed
clang::CodeGenAction::ExecuteAction() + 1329
21 libclangFrontend.so.3.8     0x00007fed4f3f0dd3
clang::FrontendAction::Execute() + 139
22 libclangFrontend.so.3.8     0x00007fed4f3a57e5
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 775
23 libclangFrontendTool.so.3.8 0x00007fed4ef6bd8d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1120
24 clang                       0x0000000000448cb2 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 989
25 clang                       0x000000000043fce5
26 clang                       0x0000000000440315 main + 1309
27 libc.so.6                   0x00007fed4e3b7b45 __libc_start_main + 245
28 clang                       0x000000000043e5f9
Stack dump:
0.    Program arguments: ../bin/clang -cc1 -triple mips-unknown-freebsd11.0
-emit-obj -disable-free -disable-llvm-verifier -main-file-name dlfcn.c
-mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -target-cpu mips3 -target-abi o32 -mfloat-abi hard -mllvm
-mips-ssection-threshold=0 -dwarf-column-info -D NLS -D SOFTFLOAT -D
__DBINTERFACE_PRIVATE -D INET6 -D _ACL_PRIVATE -D POSIX_MISTAKE -D
MALLOC_PRODUCTION -D BROKEN_DES -D PORTMAP -D DES_BUILTIN -D SOFTFLOAT_FOR_GCC
-D YP -D NS_CACHING -D SYMBOL_VERSIONING -O2 -Wsystem-headers -Wall
-Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare
-Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
-Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum
-Wno-knr-promoted-parameter -std=gnu99 -ferror-limit 19 -fmessage-length 0
-mstackrealign -fobjc-runtime=gnustep -fdiagnostics-show-option
-vectorize-loops -vectorize-slp -x c dlfcn-8f6f0e.c 
1.    <eof> parser at end of file
Aborted</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>