https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240928
Bug ID: 240928 Summary: clang segfault when compiling with -march=bonnel (CPUTYPE=atom in make.conf) Product: Base System Version: 11.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: b...@freebsd.org Reporter: cui...@gmail.com Clang 8.0.0 shipped with FreeBSD 11.3 seems to segfault when compiling certain ports with -march=bonnel (CPUTYPE=atom specified in /etc/make.conf). Here is a backtrace from gdb: #0 0x0000000001cc65d3 in (anonymous namespace)::X86MCCodeEmitter::encodeInstruction(llvm::MCInst const&, llvm::raw_ostream&, llvm::SmallVectorImpl<llvm::MCFixup>&, llvm::MCSubtargetInfo const&) const () #1 0x0000000002045312 in llvm::MCELFStreamer::EmitInstToData(llvm::MCInst const&, llvm::MCSubtargetInfo const&) () #2 0x00000000020990c1 in llvm::MCObjectStreamer::EmitInstruction(llvm::MCInst const&, llvm::MCSubtargetInfo const&, bool) () #3 0x0000000001a4a35e in llvm::X86AsmPrinter::EmitInstruction(llvm::MachineInstr const*) () #4 0x0000000002ac10c5 in llvm::AsmPrinter::EmitFunctionBody() () #5 0x00000000018c65e8 in llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction&) () #6 0x0000000002ad5d6a in llvm::MachineFunctionPass::runOnFunction(llvm::Function&) () #7 0x00000000025759dd in llvm::FPPassManager::runOnFunction(llvm::Function&) () #8 0x0000000002575ca3 in llvm::FPPassManager::runOnModule(llvm::Module&) () #9 0x000000000257607a in llvm::legacy::PassManagerImpl::run(llvm::Module&) () #10 0x000000000043250b in clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream> >) () #11 0x000000000042da27 in clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) () #12 0x00000000008799c3 in clang::ParseAST(clang::Sema&, bool, bool) () #13 0x0000000000870f05 in clang::FrontendAction::Execute() () #14 0x0000000000dfc188 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) () #15 0x000000000040ec5a in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) () #16 0x000000000040095c in cc1_main (Argv=..., Argv0=0x7fffffffdcf8 "/usr/bin/cc", MainAddr=0x409e40 <GetExecutablePath(char const*, bool)>) at /usr/src/contrib/llvm/tools/clang/tools/driver/cc1_main.cpp:219 #17 0x000000000040c816 in ExecuteCC1Tool (argv=..., Tool=...) at /usr/src/contrib/llvm/tools/clang/tools/driver/driver.cpp:310 #18 main (argc_=<optimized out>, argv_=0x7fffffffd610) at /usr/src/contrib/llvm/tools/clang/tools/driver/driver.cpp:382 Attached are the debug files clang dumped in /tmp. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"