[LLVMbugs] [Bug 12862] New: Trunk 156989 has optimization regression, preprocessed source file included.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 17 08:23:10 PDT 2012


             Bug #: 12862
           Summary: Trunk 156989 has optimization regression, preprocessed
                    source file included.
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: norman-k-williams at uiowa.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 8580
  --> http://llvm.org/bugs/attachment.cgi?id=8580
preprocessed C++ source file illustrating the crash.

I regularly re-build our software suite with CLang/LLVM svn trunk releases.

The attached file successfully compiles with -g and fails with -O3

/scratch/kent/opt/llvm/bin/clang++ -c -O3 test.cxx
Assertion failed: (MI && "enterIntvAfter called with invalid index"), function
enterIntvAfter, file /scratch/kent/clang/llvm/lib/CodeGen/SplitKit.cpp, line
Stack dump:
0.    Program arguments: /Volumes/scratch/kent/opt/llvm/bin/clang-3.1 -cc1
-triple x86_64-apple-macosx10.7.0 -emit-obj -disable-free -main-file-name
test.cxx -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables
-target-cpu core2 -coverage-file test.o -resource-dir
/Volumes/scratch/kent/opt/llvm/bin/../lib/clang/3.2 -fmodule-cache-path
/var/folders/4k/3c1grphj36l481v75dkl1j5w0009y7/T/clang-module-cache -O3
-fdeprecated-macro -fdebug-compilation-dir /scratch/kent/junk -ferror-limit 19
-fmessage-length 226 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -o test.o -x c++ test.cxx 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'test.cxx'.
4.    Running pass 'Greedy Register Allocator' on function
clang-3: error: unable to execute command: Illegal instruction: 4
clang-3: error: clang frontend command failed due to signal (use -v to see
clang-3: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
clang-3: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang-3: note: diagnostic msg:
clang-3: note: diagnostic msg:
developer 69%

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