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

             Bug #: 53070
           Summary: ICE: in execute_cse_reciprocals, at
                    tree-ssa-math-opts.c:513 with -O -ffast-math
                    -ftree-loop-if-convert -fno-tree-loop-im
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz


Created attachment 27215
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27215
reduced testcase

Compiler output:
$ gcc -O -ffast-math -ftree-loop-if-convert -fno-tree-loop-im testcase.c
testcase.c: In function 'foo':
testcase.c:2:1: internal compiler error: in execute_cse_reciprocals, at
tree-ssa-math-opts.c:513
 foo (int c)
 ^
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=0x12f1450 "/mnt/svn/gcc-trunk/gcc/tree-ssa-math-opts.c",
line=513, function=0x12f1710 "execute_cse_reciprocals")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:1006
#1  0x0000000000b07d3e in execute_cse_reciprocals () at
/mnt/svn/gcc-trunk/gcc/tree-ssa-math-opts.c:513
#2  0x0000000000913627 in execute_one_pass (pass=0x180ba60) at
/mnt/svn/gcc-trunk/gcc/passes.c:2176
#3  0x00000000009139e5 in execute_pass_list (pass=0x180ba60) at
/mnt/svn/gcc-trunk/gcc/passes.c:2231
#4  0x00000000009139f7 in execute_pass_list (pass=0x1808e40) at
/mnt/svn/gcc-trunk/gcc/passes.c:2232
#5  0x00000000006c00be in tree_rest_of_compilation (node=Unhandled dwarf
expression opcode 0xfa
) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1860
#6  0x00000000006c3302 in cgraph_expand_function (node=0x7ffff5a85780) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1930
#7  0x00000000006c5529 in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1995
#8  cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2685
#9  0x00000000006c5b1a in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:2769
#10 0x000000000059f770 in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:10053
#11 0x00000000009fef4c in compile_file () at
/mnt/svn/gcc-trunk/gcc/toplev.c:572
#12 do_compile () at /mnt/svn/gcc-trunk/gcc/toplev.c:1938
#13 toplev_main (argc=16, argv=0x7fffffffd708) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2014
#14 0x00007ffff61ba2ad in __libc_start_main () from /lib64/libc.so.6
#15 0x0000000000582d01 in _start ()

Tested revisions:
r186657 - crash

Reply via email to