[Bug tree-optimization/50769] New: [4.7 Regression] ICE: in phi_alternatives_equal, at tree-cfgcleanup.c:355 with -O2 -fno-delete-null-pointer-checks -fno-guess-branch-probability -fipa-pta

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Mon Oct 17 20:54:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50769

             Bug #: 50769
           Summary: [4.7 Regression] ICE: in phi_alternatives_equal, at
                    tree-cfgcleanup.c:355 with -O2
                    -fno-delete-null-pointer-checks
                    -fno-guess-branch-probability -fipa-pta
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 25533
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25533
testsuite/gfortran.dg/alloc_comp_optional_1.f90

Testcase is from the testsuite,
gcc/testsuite/gfortran.dg/alloc_comp_optional_1.f90

Compiler output:
$ gcc -O2 -fno-delete-null-pointer-checks -fno-guess-branch-probability
-fipa-pta testsuite/gfortran.dg/alloc_comp_optional_1.f90
testsuite/gfortran.dg/alloc_comp_optional_1.f90: In function 'main':
testsuite/gfortran.dg/alloc_comp_optional_1.f90:18:0: internal compiler error:
in phi_alternatives_equal, at tree-cfgcleanup.c:355
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) bt
#0  fancy_abort (file=0x12f2e68 "/mnt/svn/gcc-trunk/gcc/tree-cfgcleanup.c",
line=355, function=0x12f2fc0 "phi_alternatives_equal")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892
#1  0x0000000000a56c4a in phi_alternatives_equal (dest=Unhandled dwarf
expression opcode 0xf3
) at /mnt/svn/gcc-trunk/gcc/tree-cfgcleanup.c:355
#2  0x0000000000a58052 in remove_forwarder_block (bb=0x7ffff56c88f0) at
/mnt/svn/gcc-trunk/gcc/tree-cfgcleanup.c:418
#3  cleanup_tree_cfg_bb (bb=0x7ffff56c88f0) at
/mnt/svn/gcc-trunk/gcc/tree-cfgcleanup.c:657
#4  cleanup_tree_cfg_bb (bb=0x7ffff56c88f0) at
/mnt/svn/gcc-trunk/gcc/tree-cfgcleanup.c:647
#5  0x0000000000a591c9 in cleanup_tree_cfg_1 () at
/mnt/svn/gcc-trunk/gcc/tree-cfgcleanup.c:699
#6  cleanup_tree_cfg_noloop () at /mnt/svn/gcc-trunk/gcc/tree-cfgcleanup.c:755
#7  cleanup_tree_cfg () at /mnt/svn/gcc-trunk/gcc/tree-cfgcleanup.c:805
#8  0x000000000094648d in execute_function_todo (data=Unhandled dwarf
expression opcode 0xf3
) at /mnt/svn/gcc-trunk/gcc/passes.c:1664
#9  0x0000000000946d0d in execute_todo (flags=16447) at
/mnt/svn/gcc-trunk/gcc/passes.c:1741
#10 0x0000000000949f0a in execute_one_pass (pass=0x1822760) at
/mnt/svn/gcc-trunk/gcc/passes.c:2087
#11 0x000000000094a205 in execute_pass_list (pass=0x1822760) at
/mnt/svn/gcc-trunk/gcc/passes.c:2119
#12 0x000000000094a217 in execute_pass_list (pass=0x1821680) at
/mnt/svn/gcc-trunk/gcc/passes.c:2120
#13 0x0000000000aa12be in tree_rest_of_compilation (fndecl=0x7ffff5697700) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:420
#14 0x00000000006fb80a in cgraph_expand_function (node=0x7ffff5586d80) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1804
#15 0x00000000006fd75c in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1871
#16 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2148
#17 0x00000000006fdb4a in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1312
#18 0x00000000008f525d in write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/langhooks.c:303
#19 0x0000000000a3f364 in compile_file (argc=17, argv=0x7fffffffd9c8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:581
#20 do_compile (argc=17, argv=0x7fffffffd9c8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1925
#21 toplev_main (argc=17, argv=0x7fffffffd9c8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2001
#22 0x00007ffff6178d2d in __libc_start_main () from /lib64/libc.so.6
#23 0x000000000056e629 in _start ()


Tested revisions:
r180104 - crash
r179959 - crash
r178498 - OK
4.6 r177922 - OK



More information about the Gcc-bugs mailing list