[llvm-bugs] [Bug 31875] New: coldcc causes segfault on ARM

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Feb 5 23:39:48 PST 2017


https://llvm.org/bugs/show_bug.cgi?id=31875

            Bug ID: 31875
           Summary: coldcc causes segfault on ARM
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: superjoe30 at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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
http://llvm.org/bugs/ 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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170206/299f61b6/attachment.html>


More information about the llvm-bugs mailing list