A very simple hello world compilation crashes the compiler on ARMv7+neon [~]> clang++ hello.cpp clang-3.6: ../include/llvm/IR/Instructions.h:3177: llvm::BasicBlock *llvm::InvokeInst::getSuccessor(unsigned int) const: Assertion `i < 2 && "Successor # out of range for invoke!"' failed. Stack dump: 0. Program arguments: /havana/dist/llvm/bin/clang-3.6 -cc1 -triple armv7-unknown-linux-gnueabihf -emit-obj -mrelax-all -disable-free -main-file-name hello.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard -dwarf-column-info -resource-dir /havana/dist/llvm/bin/../lib/clang/3.6.0 -internal-isystem /havana/dist/llvm/bin/../include/c++/v1 -internal-isystem /usr/local/include -internal-isystem /havana/dist/llvm/bin/../lib/clang/3.6.0/include -internal-externc-isystem /usr/include/arm-linux-gnueabihf -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++14 -fdeprecated-macro -fdebug-compilation-dir /home/ismail -ferror-limit 19 -fmessage-length 127 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /havana/tmp/hello-69a308.o -x c++ hello.cpp 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'hello.cpp'. 4. Running pass 'ARM Instruction Selection' on function '@_ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_' clang-3.6: error: unable to execute command: Aborted clang-3.6: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.6.0 (trunk 223925) Target: armv7l-unknown-linux-gnueabihf Thread model: posix clang-3.6: 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-3.6: note: diagnostic msg: ********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.6: note: diagnostic msg: /havana/tmp/hello-6f14b1.cpp clang-3.6: note: diagnostic msg: /havana/tmp/hello-6f14b1.sh clang-3.6: note: diagnostic msg: ******************** r223766 is OK. _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
