<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 --- - clang-llvm/llvm/lib/CodeGen/SplitKit.cpp:379: llvm::VNInfo* llvm::SplitEditor::defValue(unsigned int, const llvm::VNInfo*, llvm::SlotIndex): Assertion `Edit->getParent().getVNInfoAt(Idx) == ParentVNI && "Bad Parent VNI"' failed."
   href="http://llvm.org/bugs/show_bug.cgi?id=19300">19300</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-llvm/llvm/lib/CodeGen/SplitKit.cpp:379: llvm::VNInfo* llvm::SplitEditor::defValue(unsigned int, const llvm::VNInfo*, llvm::SlotIndex): Assertion `Edit->getParent().getVNInfoAt(Idx) == ParentVNI && "Bad Parent VNI"' failed.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.4
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>clusty1@gmail.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=12315" name="attach_12315" title="suggested posting file1">attachment 12315</a> <a href="attachment.cgi?id=12315&action=edit" title="suggested posting file1">[details]</a></span>
suggested posting file1

Tried compiling clang with gcc 4.1.2.
The compile line was:
CC=gcc CXX=g++ ../llvm/configure
--with-gcc-toolchain=/usr/lib/gcc/x86_64-redhat-linux/4.1.2 --enable-optimized

The error message was:
  COMPILE:   clang_linux/full-x86_64/x86_64:
/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/lib/muldc3.c
clang: /mnt/p4/longueuil/clang-llvm/llvm/lib/CodeGen/SplitKit.cpp:379:
llvm::VNInfo* llvm::SplitEditor::defValue(unsigned int, const llvm::VNInfo*,
llvm::SlotIndex): Assertion `Edit->getParent().getVNInfoAt(Idx) == ParentVNI &&
"Bad Parent VNI"' failed.
0  clang           0x0000000002d14b52 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang           0x0000000002d15877
2  libpthread.so.0 0x00000034e5e0e4c0
3  libc.so.6       0x00000034e5230215 gsignal + 53
4  libc.so.6       0x00000034e5231cc0 abort + 272
5  libc.so.6       0x00000034e5229696 __assert_fail + 246
6  clang           0x00000000026aacaf llvm::SplitEditor::defValue(unsigned int,
llvm::VNInfo const*, llvm::SlotIndex) + 703
7  clang           0x00000000026ab260 llvm::SplitEditor::defFromParent(unsigned
int, llvm::VNInfo*, llvm::SlotIndex, llvm::MachineBasicBlock&,
llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >) + 688
8  clang           0x00000000026ab6fc
llvm::SplitEditor::leaveIntvAfter(llvm::SlotIndex) + 780
9  clang           0x00000000026b07be
llvm::SplitEditor::splitRegInBlock(llvm::SplitAnalysis::BlockInfo const&,
unsigned int, llvm::SlotIndex) + 1006
10 clang           0x000000000266a5cc
11 clang           0x000000000266b539
12 clang           0x000000000266e7aa
13 clang           0x000000000266ec72
14 clang           0x000000000277748b llvm::RegAllocBase::allocatePhysRegs() +
299
15 clang           0x00000000026663f7
16 clang           0x00000000025e2dc5
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 53
17 clang           0x0000000002c8b7c5
llvm::FPPassManager::runOnFunction(llvm::Function&) + 677
18 clang           0x0000000002c8b85b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
19 clang           0x0000000002c8b2bf
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1087
20 clang           0x0000000002c8b50d
llvm::legacy::PassManager::run(llvm::Module&) + 13
21 clang           0x0000000000951909
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 1961
22 clang           0x000000000094e183
23 clang           0x0000000000b91167 clang::ParseAST(clang::Sema&, bool, bool)
+ 391
24 clang           0x000000000094beac clang::CodeGenAction::ExecuteAction() +
60
25 clang           0x000000000071e4e9 clang::FrontendAction::Execute() + 297
26 clang           0x00000000006f4a2e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 350
27 clang           0x00000000006cb65a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 890
28 clang           0x00000000006c2bf4 cc1_main(char const**, char const**, char
const*, void*) + 1284
29 clang           0x00000000006c9977 main + 5303
30 libc.so.6       0x00000034e521d974 __libc_start_main + 244
31 clang           0x00000000006c18a9
Stack dump:
0.      Program arguments:
/mnt/p4/longueuil/clang-llvm/build/Release+Asserts/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name muldc3.c
-mrelocation-model pic -pic-level 2 -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.17.50.0.6 -momit-leaf-frame-pointer -coverage-file
/mnt/p4/longueuil/clang-llvm/build/tools/clang/runtime/compiler-rt/clang_linux/full-x86_64/x86_64/SubDir.lib/muldc3.o
-resource-dir
/mnt/p4/longueuil/clang-llvm/build/Release+Asserts/bin/../lib/clang/3.4
-isysroot /mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/SDKs/linux
-internal-isystem
/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/SDKs/linux/usr/local/include
-internal-isystem
/mnt/p4/longueuil/clang-llvm/build/Release+Asserts/bin/../lib/clang/3.4/include
-internal-externc-isystem
/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/SDKs/linux/include
-internal-externc-isystem
/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/SDKs/linux/usr/include
-O3 -Wall -Werror -fdebug-compilation-dir
/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt -ferror-limit 19
-fmessage-length 162 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o
/mnt/p4/longueuil/clang-llvm/build/tools/clang/runtime/compiler-rt/clang_linux/full-x86_64/x86_64/SubDir.lib/muldc3.o
-x c /mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/lib/muldc3.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/lib/muldc3.c'.
4.      Running pass 'Greedy Register Allocator' on function '@__muldc3'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/muldc3-776a4c.c
clang: note: diagnostic msg: /tmp/muldc3-776a4c.sh
clang: note: diagnostic msg:

********************
make[5]: ***
[/mnt/p4/longueuil/clang-llvm/build/tools/clang/runtime/compiler-rt/clang_linux/full-x86_64/x86_64/SubDir.lib/muldc3.o]
Error 254
make[5]: Leaving directory
`/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt'
make[4]: *** [BuildRuntimeLibraries] Error 2
make[4]: Leaving directory
`/mnt/p4/longueuil/clang-llvm/build/tools/clang/runtime/compiler-rt'
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory
`/mnt/p4/longueuil/clang-llvm/build/tools/clang/runtime'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/mnt/p4/longueuil/clang-llvm/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/mnt/p4/longueuil/clang-llvm/build/tools'
make: *** [all] Error 1</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>