<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 --- - coldcc causes segfault on ARM"
   href="https://llvm.org/bugs/show_bug.cgi?id=31875">31875</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>coldcc causes segfault on ARM
          </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>superjoe30@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>target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv8-unknown-unknown-unknown"

define void @_assert() {
  call coldcc void @_panic()
  ret void
}

declare external coldcc void @_panic()





clang-4.0: warning: unknown platform, assuming -mfloat-abi=soft
clang-4.0: warning: unknown platform, assuming -mfloat-abi=soft
clang-4.0: warning: argument unused during compilation:
'--gcc-toolchain=/opt/compiler-explorer/gcc-6.2.0'
[-Wunused-command-line-argument]
warning: overriding the module target triple with armv7-- [-Woverride-module]
0  clang-4.0       0x0000000001bc7fb8
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 56
1  clang-4.0       0x0000000001bc5f7e llvm::sys::RunSignalHandlers() + 62
2  clang-4.0       0x0000000001bc60cc
3  libpthread.so.0 0x00007efee4c2f390
Stack dump:
0.    Program arguments:
/opt/compiler-explorer/clang-trunk-20170110/bin/clang-4.0 -cc1 -triple armv7--
-S -disable-free -disable-llvm-verifier -discard-value-names -main-file-name
example.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -target-cpu cortex-a8
-target-feature +soft-float -target-feature +soft-float-abi -target-feature
-neon -target-feature -crypto -target-feature +strict-align -target-abi aapcs
-msoft-float -mfloat-abi soft -dwarf-column-info -debug-info-kind=limited
-dwarf-version=4 -debugger-tuning=gdb -coverage-notes-file
/tmp/compiler-explorer-compiler11716-11895-1gurcy1.o4r8aaif6r/output.gcno
-resource-dir
/opt/compiler-explorer/clang-trunk-20170110/bin/../lib/clang/4.0.0
-fdebug-compilation-dir /compiler-explorer -ferror-limit 19 -fmessage-length 0
-fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -o
/tmp/compiler-explorer-compiler11716-11895-1gurcy1.o4r8aaif6r/output.s -x ir
<source>
1.    Code generation
2.    Running pass 'Function Pass Manager' on module '<source>'.
3.    Running pass 'ARM Instruction Selection' on function '@_assert'
clang-4.0: error: unable to execute command: Segmentation fault (core dumped)
clang-4.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 4.0.0 (trunk 291576)
Target: armv7
Thread model: posix
InstalledDir: /opt/compiler-explorer/clang-trunk/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: Error generating preprocessed source(s) - no
preprocessable inputs.
Compiler exited with result 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>