https://llvm.org/bugs/show_bug.cgi?id=30453
Bug ID: 30453 Summary: Assertion failed when using RSP as .cfi_def_cfa_register: (MRI.getLLVMRegNum(Inst.getRegister(), true) == (Is64Bit ? X86::RBP : X86::EBP) && "Invalid frame pointer!") Product: clang Version: trunk Hardware: PC OS: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: sean.willia...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Repro: // %clang -target x86_64-apple-macho -c %s -o /dev/null _label: .cfi_startproc .cfi_def_cfa_register rsp .cfi_endproc Outputs: Assertion failed: (MRI.getLLVMRegNum(Inst.getRegister(), true) == (Is64Bit ? X86::RBP : X86::EBP) && "Invalid frame pointer!"), function generateCompactUnwindEncodingImpl, file /Users/sean/Documents/workspace/clang/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp, line 550. Stack dump: 0. Program arguments: /Users/sean/Documents/workspace/clang/build/debug/bin/clang-4.0 -cc1as -triple x86_64-apple--macho -filetype obj -main-file-name repro.S -target-cpu x86-64 -fdebug-compilation-dir /Users/sean/Documents/workspace/clang/llvm -dwarf-debug-producer clang version 4.0.0 (trunk 281680) (llvm/trunk 281679) -dwarf-version=4 -mrelocation-model pic -o /dev/null /var/folders/b2/t16__58j5437wpqs_fbms4gr0000gn/T/repro-cfe9af.s clang-4.0: error: unable to execute command: Abort trap: 6 clang-4.0: error: clang integrated assembler command failed due to signal (use -v to see invocation) clang version 4.0.0 (trunk 281680) (llvm/trunk 281679) Target: x86_64-apple--macho Thread model: posix InstalledDir: /Users/sean/Documents/workspace/clang/llvm/../build/debug/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: ******************** 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: /var/folders/b2/t16__58j5437wpqs_fbms4gr0000gn/T/repro-d8f001.S clang-4.0: note: diagnostic msg: /var/folders/b2/t16__58j5437wpqs_fbms4gr0000gn/T/repro-d8f001.sh clang-4.0: note: diagnostic msg: ******************** The expected behavior is for clang to raise an error in this case (for the ABI violation) instead of asserting. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs