public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/52139] New: ICE: in remove_insn, at emit-rtl.c:3960 with -O -fPIC -fno-tree-dominator-opts -fno-tree-fre --param case-values-threshold=1
@ 2012-02-06 19:48 zsojka at seznam dot cz
  2012-02-06 19:55 ` [Bug rtl-optimization/52139] " zsojka at seznam dot cz
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: zsojka at seznam dot cz @ 2012-02-06 19:48 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52139
           Summary: ICE: in remove_insn, at emit-rtl.c:3960 with -O -fPIC
                    -fno-tree-dominator-opts -fno-tree-fre --param
                    case-values-threshold=1
    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 26587
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26587
reduced testcase

Compiler output:
$ gcc -O -fPIC -fno-tree-dominator-opts -fno-tree-fre --param
case-values-threshold=1 testcase.c         
testcase.c: In function 'foo':
testcase.c:17:1: internal compiler error: in remove_insn, at emit-rtl.c:3960
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=0x1264468 "/mnt/svn/gcc-trunk/gcc/emit-rtl.c", line=3960,
function=0x1265661 "remove_insn")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:898
#1  0x000000000073f55c in remove_insn (insn=0x7ffff5bc6580) at
/mnt/svn/gcc-trunk/gcc/emit-rtl.c:3960
#2  0x000000000069c541 in delete_insn (insn=0x7ffff5bc6580) at
/mnt/svn/gcc-trunk/gcc/cfgrtl.c:145
#3  0x000000000069fb8a in cfg_layout_merge_blocks (a=0x7ffff5ba5410,
b=0x7ffff5ba5340) at /mnt/svn/gcc-trunk/gcc/cfgrtl.c:2896
#4  0x000000000068c5f6 in merge_blocks (a=0x7ffff5ba5410, b=0x7ffff5ba5340) at
/mnt/svn/gcc-trunk/gcc/cfghooks.c:683
#5  0x00000000010810b7 in try_optimize_cfg (mode=<optimized out>) at
/mnt/svn/gcc-trunk/gcc/cfgcleanup.c:2696
#6  cleanup_cfg (mode=<optimized out>) at
/mnt/svn/gcc-trunk/gcc/cfgcleanup.c:2940
#7  0x00000000010d6cc6 in rest_of_handle_cse () at
/mnt/svn/gcc-trunk/gcc/cse.c:7327
#8  rest_of_handle_cse () at /mnt/svn/gcc-trunk/gcc/cse.c:7310
#9  0x00000000008fbba5 in execute_one_pass (pass=0x17ced80) at
/mnt/svn/gcc-trunk/gcc/passes.c:2081
#10 0x00000000008fbf65 in execute_pass_list (pass=0x17ced80) at
/mnt/svn/gcc-trunk/gcc/passes.c:2136
#11 0x00000000008fbf77 in execute_pass_list (pass=0x17c9f40) at
/mnt/svn/gcc-trunk/gcc/passes.c:2137
#12 0x0000000000a5e24e in tree_rest_of_compilation (fndecl=0x7ffff5ba6e00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#13 0x00000000006affca in cgraph_expand_function (node=0x7ffff5a976c0) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1829
#14 0x00000000006b1ebc in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1896
#15 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2210
#16 0x00000000006b250a in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1338
#17 0x000000000058ec70 in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:10030
#18 0x00000000009f0a2c in compile_file () at
/mnt/svn/gcc-trunk/gcc/toplev.c:573
#19 do_compile () at /mnt/svn/gcc-trunk/gcc/toplev.c:1938
#20 toplev_main (argc=18, argv=0x7fffffffd7f8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2014
#21 0x00007ffff61cc09d in __libc_start_main () from /lib64/libc.so.6
#22 0x0000000000572371 in _start ()

Tested revisions:
r183913 - crash


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-04-16 20:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-06 19:48 [Bug tree-optimization/52139] New: ICE: in remove_insn, at emit-rtl.c:3960 with -O -fPIC -fno-tree-dominator-opts -fno-tree-fre --param case-values-threshold=1 zsojka at seznam dot cz
2012-02-06 19:55 ` [Bug rtl-optimization/52139] " zsojka at seznam dot cz
2012-02-06 20:03 ` [Bug rtl-optimization/52139] [4.5/4.6/4.7 Regression] ICE: in remove_insn, at emit-rtl.c:3960 with -O -fPIC -fno-tree-dominator-opts -fno-tree-fre jakub at gcc dot gnu.org
2012-02-07 11:43 ` jakub at gcc dot gnu.org
2012-02-07 12:21 ` jakub at gcc dot gnu.org
2012-02-07 13:23 ` jakub at gcc dot gnu.org
2012-02-07 15:47 ` rguenth at gcc dot gnu.org
2012-02-08 12:30 ` jakub at gcc dot gnu.org
2012-02-09 17:33 ` [Bug rtl-optimization/52139] [4.5/4.6 " jakub at gcc dot gnu.org
2012-02-09 21:39 ` [Bug rtl-optimization/52139] [4.5 " jakub at gcc dot gnu.org
2012-02-09 21:50 ` jakub at gcc dot gnu.org
2013-04-11 19:23 ` steven at gcc dot gnu.org
2013-04-11 19:26 ` steven at gcc dot gnu.org
2013-04-13 14:58 ` steven at gcc dot gnu.org
2013-04-16 20:15 ` steven at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).