[LLVMbugs] [Bug 11955] New: Assertion failure in bundle_iterator when generating code for ppc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 8 18:30:16 PST 2012


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

             Bug #: 11955
           Summary: Assertion failure in bundle_iterator when generating
                    code for ppc
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: PowerPC
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: chmeeedalf at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When compiling anything with a recent clang/llvm (currently at 150076)
(targeting FreeBSD/PowerPC), I see the following assertion.  It occurs in
something as simple as a hello world program.  I've seen it in two versions so
far, not sure when it was introduced:

clang -O2 -pipe   /home/chmeee/hello.c  -o hello
Assertion failed: (!MII->isInsideBundle() && "It's not legal to initialize
bundle_iterator with a bundled MI"), function bundle_iterator, file
/home/chmeee/llvm/include/llvm/CodeGen/MachineBasicBlock.h, line 144.
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
powerpc-unknown-freebsd10.0 -S -disable-free -main-file-name hello.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-target-linker-version 2.17.50 -momit-leaf-frame-pointer -resource-dir
/usr/local/bin/../lib/clang/3.1 -fmodule-cache-path /var/tmp/clang-module-cache
-O2 -fno-dwarf-directory-asm -fdebug-compilation-dir /home/chmeee -ferror-limit
19 -fmessage-length 0 -mstackrealign -fno-signed-char -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -o /tmp/hello-OqrzaV.s -x c /home/chmeee/hello.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module '/home/chmeee/hello.c'.
4.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@main'
clang: error: unable to execute command: Abort trap: 6
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/hello-chgSZc.i
clang: note: diagnostic msg: /tmp/hello-chgSZc.sh
*** Error code 254

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list