[LLVMbugs] [Bug 22664] New: Compiler crash with pragma clang optimize off

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 23 06:41:42 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22664

            Bug ID: 22664
           Summary: Compiler crash with pragma clang optimize off
           Product: clang
           Version: 3.6
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: michael.schlottke at sloede.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13927
  --> http://llvm.org/bugs/attachment.cgi?id=13927&action=edit
error message + stacktrace

When I add 

#pragma clang optimize off

to the top of a file, Clang crashes on Bluegene/Q frontends (IBM Power 740)
with the following error (see full stack trace attached):

Impossible reg-to-reg copy
UNREACHABLE executed at
/gpfs/vesta-home/hfinkel/rpmbuild/BUILD/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:777!
0  libLLVM-3.6svn.so 0x00000fff944ab34c llvm::sys::PrintStackTrace(_IO_FILE*) +
4280084604
1  libLLVM-3.6svn.so 0x00000fff944ac3e8
2  libLLVM-3.6svn.so 0x00000fff944acb74
3                    0x00000fff95340448 __kernel_sigtramp_rt64 + 0
4  libc.so.6         0x00000080a18d6e08 abort + 4293479616
5  libLLVM-3.6svn.so 0x00000fff9448a47c llvm::llvm_unreachable_internal(char
const*, char const*, unsigned int) + 4279958452
6  libLLVM-3.6svn.so 0x00000fff93f9fc28
llvm::PPCInstrInfo::copyPhysReg(llvm::MachineBasicBlock&,
llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >, llvm::DebugLoc, unsigned int,
unsigned int, bool) const + 4274916928
7  libLLVM-3.6svn.so 0x00000fff9373f620
8  libLLVM-3.6svn.so 0x00000fff937e124c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 4267065340
9  libLLVM-3.6svn.so 0x00000fff93a7336c
llvm::FPPassManager::runOnFunction(llvm::Function&) + 4269654548
10 libLLVM-3.6svn.so 0x00000fff93a73744
llvm::FPPassManager::runOnModule(llvm::Module&) + 4269655484
11 libLLVM-3.6svn.so 0x00000fff93a73efc
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 4269657388
12 libLLVM-3.6svn.so 0x00000fff93a7465c
llvm::legacy::PassManager::run(llvm::Module&) + 4269659156
13 clang             0x0000000010486e68
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
4271471608
14 clang             0x0000000010477d70
15 clang             0x0000000010711ee0 clang::ParseAST(clang::Sema&, bool,
bool) + 4274074240
16 clang             0x0000000010206560
clang::ASTFrontendAction::ExecuteAction() + 4268923288
17 clang             0x00000000104764c4 clang::CodeGenAction::ExecuteAction() +
4271405980
18 clang             0x0000000010205c80 clang::FrontendAction::Execute() +
4268921088
19 clang             0x00000000101c8c4c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 4268675668
20 clang             0x00000000101a3a70
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4268531104
21 clang             0x000000001019779c cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 4268482164
22 clang             0x00000000101a129c main + 4268521268
23 libc.so.6         0x00000080a18bc048
24 libc.so.6         0x00000080a18bc240 __libc_start_main + 4293375320

-- 
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/20150223/61305e76/attachment.html>


More information about the llvm-bugs mailing list