<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Compiler crash with pragma clang optimize off"
   href="http://llvm.org/bugs/show_bug.cgi?id=22664">22664</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compiler crash with pragma clang optimize off
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>michael.schlottke@sloede.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13927" name="attach_13927" title="error message + stacktrace">attachment 13927</a> <a href="attachment.cgi?id=13927&action=edit" title="error message + stacktrace">[details]</a></span>
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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>