[LLVMbugs] [Bug 10018] New: -ffast-math -O3 -fplugin-arg-dragonegg-enable-gcc-optzns ICEs on doduc.f90

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 25 18:42:07 PDT 2011


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

           Summary: -ffast-math -O3
                    -fplugin-arg-dragonegg-enable-gcc-optzns ICEs on
                    doduc.f90
           Product: dragonegg
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: New Bugs
        AssignedTo: baldrick at free.fr
        ReportedBy: howarth at nitro.med.uc.edu
                CC: llvmbugs at cs.uiuc.edu


The doduc.f90 Polyhedron 2005 benchmark ICEs the FSF gcc 4.5.3 compiler with
dragon egg svn r132085 when using -ffast-math -O3
-fplugin-arg-dragonegg-enable-gcc-optzns...

[MacPro:pb05/lin/source] howarth% de-gfortran45 -msse3 -ffast-math -O3
-fplugin-arg-dragonegg-enable-gcc-optzns doduc.f90 -o doduc
 <vec_cond_expr 0x147061240
    type <vector_type 0x144694d20
        type <real_type 0x1446480a8 real(kind=8) DF
            size <integer_cst 0x14462ba50 constant 64>
            unit size <integer_cst 0x14462ba78 constant 8>
            align 64 symtab 0 alias set 2 canonical type 0x1446480a8 precision
64
            pointer_to_this <pointer_type 0x1446482a0> reference_to_this
<reference_type 0x14525e0a8>>
        V2DF
        size <integer_cst 0x14462bc58 constant 128>
        unit size <integer_cst 0x14462bc80 constant 16>
        align 128 symtab 0 alias set 2 canonical type 0x144694d20 nunits 2
        pointer_to_this <pointer_type 0x14469e930>>

    arg 0 <ge_expr 0x147066e38 type <vector_type 0x144694d20>

        arg 0 <ssa_name 0x1470722c0 type <vector_type 0x144694d20>
            var <var_decl 0x14706fbe0 vect_var_.2045>def_stmt
vect_var_.2045_3878 = ABS_EXPR <vect_var_.2038_3872>;

            version 3878>
        arg 1 <ssa_name 0x147072268 type <vector_type 0x144694d20>
            var <var_decl 0x14706faa0 vect_var_.2043>def_stmt
vect_var_.2043_3877 = MAX_EXPR <vect_var_.2041_3875, {
9.99999977648258209228515625e-3, 9.99999977648258209228515625e-3 }>;

            version 3877>>
    arg 1 <ssa_name 0x147072420 type <vector_type 0x144694d20>
        var <var_decl 0x14706fd20 vect_var_.2047>def_stmt vect_var_.2047_3880 =
vect_var_.2046_3879 / vect_var_.2045_3878;

        version 3880>
    arg 2 <ssa_name 0x147072000 type <vector_type 0x144694d20>
        var <var_decl 0x14706f780 vect_var_.2038>def_stmt vect_var_.2038_3872 =
vect_var_.2036_3869 * vect_cst_.2039_3871;

        version 3872>>
*** 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
doduc.f90: In function ‘s00017_’:
doduc.f90:1480:0: 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...

[MacPro:pb05/lin/source] howarth% gdb
/sw/lib/gcc4.5/libexec/gcc/x86_64-apple-darwin11.0.0/4.5.3/f951
...

(gdb) r doduc.f90 -fPIC -quiet -dumpbase doduc.f90 -mmacosx-version-min=10.7.0
-msse3 -mtune=generic -auxbase doduc -O3 -version
-fplugin=/sw/lib/gcc4.5/lib/dragonegg.so -ffast-math
-fplugin-arg-dragonegg-enable-gcc-optzns -fintrinsic-modules-path
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin11.0.0/4.5.3/finclude -o
/var/folders/0k/n67sywk41kz5jjys5nv6mnpg++++fp/T//ccW45aQF.s
Starting program:
/sw/lib/gcc4.5/libexec/gcc/x86_64-apple-darwin11.0.0/4.5.3/f951 doduc.f90 -fPIC
-quiet -dumpbase doduc.f90 -mmacosx-version-min=10.7.0 -msse3 -mtune=generic
-auxbase doduc -O3 -version -fplugin=/sw/lib/gcc4.5/lib/dragonegg.so
-ffast-math -fplugin-arg-dragonegg-enable-gcc-optzns -fintrinsic-modules-path
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin11.0.0/4.5.3/finclude -o
/var/folders/0k/n67sywk41kz5jjys5nv6mnpg++++fp/T//ccW45aQF.s
...

Versions of loaded plugins:
 dragonegg: exported
 <vec_cond_expr 0x145ec9240
    type <vector_type 0x141d6ad20
        type <real_type 0x141d1e0a8 real(kind=8) DF
            size <integer_cst 0x141d01a50 constant 64>
            unit size <integer_cst 0x141d01a78 constant 8>
            align 64 symtab 0 alias set 2 canonical type 0x141d1e0a8 precision
64
            pointer_to_this <pointer_type 0x141d1e2a0> reference_to_this
<reference_type 0x14322c0a8>>
        V2DF
        size <integer_cst 0x141d01c58 constant 128>
        unit size <integer_cst 0x141d01c80 constant 16>
        align 128 symtab 0 alias set 2 canonical type 0x141d6ad20 nunits 2
        pointer_to_this <pointer_type 0x141d74930>>

    arg 0 <ge_expr 0x145ecee38 type <vector_type 0x141d6ad20>

        arg 0 <ssa_name 0x145eda2c0 type <vector_type 0x141d6ad20>
            var <var_decl 0x145ed7be0 vect_var_.2045>def_stmt
vect_var_.2045_3878 = ABS_EXPR <vect_var_.2038_3872>;

            version 3878>
        arg 1 <ssa_name 0x145eda268 type <vector_type 0x141d6ad20>
            var <var_decl 0x145ed7aa0 vect_var_.2043>def_stmt
vect_var_.2043_3877 = MAX_EXPR <vect_var_.2041_3875, {
9.99999977648258209228515625e-3, 9.99999977648258209228515625e-3 }>;

            version 3877>>
    arg 1 <ssa_name 0x145eda420 type <vector_type 0x141d6ad20>
        var <var_decl 0x145ed7d20 vect_var_.2047>def_stmt vect_var_.2047_3880 =
vect_var_.2046_3879 / vect_var_.2045_3878;

        version 3880>
    arg 2 <ssa_name 0x145eda000 type <vector_type 0x141d6ad20>
        var <var_decl 0x145ed7780 vect_var_.2038>def_stmt vect_var_.2038_3872 =
vect_var_.2036_3869 * vect_cst_.2039_3871;

        version 3872>>

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000000000000a
0x000000014280f044 in llvm::DenseMap<llvm::Constant*, llvm::GlobalVariable*,
llvm::DenseMapInfo<llvm::Constant*>, llvm::DenseMapInfo<llvm::GlobalVariable*>
>::~DenseMap ()
(gdb) bt
#0  0x000000014280f044 in llvm::DenseMap<llvm::Constant*,
llvm::GlobalVariable*, llvm::DenseMapInfo<llvm::Constant*>,
llvm::DenseMapInfo<llvm::GlobalVariable*> >::~DenseMap ()
#1  0x00007fff5fbfdf40 in ?? ()
#2  0x000000014282cb95 in TreeToLLVM::EmitRegisterConstant ()
#3  0x00000001428348e2 in TreeToLLVM::EmitAssignSingleRHS ()
#4  0x0000000142833c84 in TreeToLLVM::EmitAssignRHS ()
#5  0x0000000142819417 in TreeToLLVM::RenderGIMPLE_ASSIGN ()
#6  0x00000001428154a2 in TreeToLLVM::EmitBasicBlock ()
#7  0x000000014281ad8b in TreeToLLVM::EmitFunction ()
#8  0x0000000142807e50 in emit_current_function ()
#9  0x00000001428039be in rtl_emit_function ()
#10 0x0000000100565382 in execute_one_pass (pass=0x142fbb088) at
../../gcc-4.5.3/gcc/passes.c:1568
#11 0x000000010056561d in execute_pass_list (pass=0x142fbb088) at
../../gcc-4.5.3/gcc/passes.c:1623
#12 0x00000001006595c1 in tree_rest_of_compilation (fndecl=0x14368c400) at
../../gcc-4.5.3/gcc/tree-optimize.c:413
#13 0x00000001007b4a83 in cgraph_expand_function (node=0x143262888) at
../../gcc-4.5.3/gcc/cgraphunit.c:1555
#14 0x00000001007b6cf4 in cgraph_optimize () at
../../gcc-4.5.3/gcc/cgraphunit.c:1634
#15 0x00000001007b71fd in cgraph_finalize_compilation_unit () at
../../gcc-4.5.3/gcc/cgraphunit.c:1103
#16 0x0000000100505db6 in write_global_declarations () at
../../gcc-4.5.3/gcc/langhooks.c:309
#17 0x000000010061224e in toplev_main (argc=20, argv=0x7fff5fbfee68) at
../../gcc-4.5.3/gcc/toplev.c:1065
#18 0x0000000100001594 in start ()
(gdb)

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