[LLVMbugs] [Bug 12609] New: dragonegg 3.1 under FSF gcc 4.7.0 ICEs with -O1 -fplugin-arg-dragonegg-enable-gcc-optzns compiling air.f90

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 20 19:46:50 PDT 2012


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

             Bug #: 12609
           Summary: dragonegg 3.1 under FSF gcc 4.7.0 ICEs with -O1
                    -fplugin-arg-dragonegg-enable-gcc-optzns compiling
                    air.f90
           Product: dragonegg
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: New Bugs
        AssignedTo: baldrick at free.fr
        ReportedBy: howarth at nitro.med.uc.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When compiling the air.f90 Polyhedron 2005 benchmark with llvm/dragonegg 3.1
branch at r155228 under FSF gcc 4.7.0 using "-O1
-fplugin-arg-dragonegg-enable-gcc-optzns", the compiler ICEs with...

% /sw/lib/gcc4.7/bin/gfortran -fplugin=/sw/lib/gcc4.7/lib/dragonegg.so -O1
-fplugin-arg-dragonegg-enable-gcc-optzns air.f90 -o air
i_lsm.336_5125 = D.3373_161 > 0 ? i_lsm.336_7063 : 1;

*** WARNING *** there are active plugins, do not report this as a bug unless
you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_UNIT               | dragonegg
PLUGIN_FINISH                    | dragonegg
PLUGIN_START_UNIT                | dragonegg
PLUGIN_ALL_IPA_PASSES_END        | dragonegg
In function ‘MAIN__’:
f951: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

This backtraces as...

% lldb /sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.1/f951
Current executable set to
'/sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.1/f951' (x86_64).
(lldb) r air.f90
-iplugindir=/sw/lib/gcc4.7/lib/gcc/x86_64-apple-darwin11.4.0/4.7.1/plugin -fPIC
-quiet -dumpbase air.f90 -mmacosx-version-min=10.7.4 -mtune=core2 -auxbase air
-O1 -version -fplugin=/sw/lib/gcc4.7/lib/dragonegg.so
-fplugin-arg-dragonegg-enable-gcc-optzns -fintrinsic-modules-path
/sw/lib/gcc4.7/lib/gcc/x86_64-apple-darwin11.4.0/4.7.1/finclude -o
/var/folders/1l/n78sywl52lz6kkys6nv7mnph0000gp/T//ccV36Ode.s
Process 42744 launched:
'/sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.1/f951' (x86_64)
GNU Fortran (GCC) version 4.7.1 20120407 (prerelease)
(x86_64-apple-darwin11.4.0)
    compiled by GNU C version 4.7.1 20120407 (prerelease), GMP version 5.0.4,
MPFR version 3.1.0-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Versions of loaded plugins:
 dragonegg: 3.1svn
GNU Fortran (GCC) version 4.7.1 20120407 (prerelease)
(x86_64-apple-darwin11.4.0)
    compiled by GNU C version 4.7.1 20120407 (prerelease), GMP version 5.0.4,
MPFR version 3.1.0-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Versions of loaded plugins:
 dragonegg: 3.1svn
i_lsm.336_5125 = D.3373_161 > 0 ? i_lsm.336_7063 : 1;

Process 42744 stopped
* thread #1: tid = 0x1f03, 0x0000000142a33e77
dragonegg.so`TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 279, stop reason
= EXC_BAD_ACCESS (code=1, address=0x544fc1700)
    frame #0: 0x0000000142a33e77
dragonegg.so`TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 279
dragonegg.so`TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 279:
-> 0x142a33e77:  movslq (%rcx,%r8,4), %rdi
   0x142a33e7b:  addq   %rdi, %rcx
   0x142a33e7e:  jmpq   *%rcx
   0x142a33e80:  jns    0x0000000142a33e87       ;
TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 295
(lldb) bt
* thread #1: tid = 0x1f03, 0x0000000142a33e77
dragonegg.so`TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 279, stop reason
= EXC_BAD_ACCESS (code=1, address=0x544fc1700)
    frame #0: 0x0000000142a33e77
dragonegg.so`TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 279
    frame #1: 0x0000000142a3456d
dragonegg.so`TreeToLLVM::RenderGIMPLE_ASSIGN(gimple_statement_d*) + 93
    frame #2: 0x0000000142a38d2b
dragonegg.so`TreeToLLVM::EmitBasicBlock(basic_block_def*) + 1755
(lldb)

-- 
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