public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/46465] New: ICE: in calc_dfs_tree, at dominance.c:394 with -Os -fno-rerun-cse-after-loop -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce
@ 2010-11-13 16:29 zsojka at seznam dot cz
  2010-12-03  8:24 ` [Bug tree-optimization/46465] " zsojka at seznam dot cz
  2010-12-17 20:40 ` steven at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: zsojka at seznam dot cz @ 2010-11-13 16:29 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE: in calc_dfs_tree, at dominance.c:394 with -Os
                    -fno-rerun-cse-after-loop -fno-tree-ccp
                    -fno-tree-copy-prop -fno-tree-dce
           Product: gcc
           Version: 4.6.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 22384
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22384
reduced testcase (from gcc.c-torture/compile/20050510-1.c)

This happens even after fixing PR46183.

Compiler output:
$ gcc -Os -fno-rerun-cse-after-loop -fno-tree-ccp -fno-tree-copy-prop
-fno-tree-dce pr46465.c 
pr46465.c: In function 'foo':
pr46465.c:7:1: internal compiler error: in calc_dfs_tree, at dominance.c:396
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r166703 - crash
4.5 r166509 - crash
4.4 r166509 - crash


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

* [Bug tree-optimization/46465] ICE: in calc_dfs_tree, at dominance.c:394 with -Os -fno-rerun-cse-after-loop -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce
  2010-11-13 16:29 [Bug tree-optimization/46465] New: ICE: in calc_dfs_tree, at dominance.c:394 with -Os -fno-rerun-cse-after-loop -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce zsojka at seznam dot cz
@ 2010-12-03  8:24 ` zsojka at seznam dot cz
  2010-12-17 20:40 ` steven at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: zsojka at seznam dot cz @ 2010-12-03  8:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> 2010-12-03 08:24:00 UTC ---
Created attachment 22609
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22609
different testcase

This testcase is a bit longer, but it needs simpler flags:

$ gcc -O -fgcse -fno-tree-dominator-opts pr46465-2.c -wrapper=gdb,--args
gcc: error: unrecognized option '-wrapper=gdb,--args'
pr46465-2.c: In function 'foo':
pr46465-2.c:15:1: internal compiler error: in calc_dfs_tree, at dominance.c:395
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Backtrace is the same as for the first testcase (and even as for PR46755):
(gdb) bt
#0  fancy_abort (file=0x10f5ca8 "/mnt/svn/gcc-trunk/gcc/dominance.c", line=395,
function=0x10f5d65 "calc_dfs_tree")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892
#1  0x0000000000634a93 in calc_dfs_tree (di=0x7fffffffd7b0, reverse=0 '\000')
at /mnt/svn/gcc-trunk/gcc/dominance.c:395
#2  0x0000000000636370 in calculate_dominance_info (dir=CDI_DOMINATORS) at
/mnt/svn/gcc-trunk/gcc/dominance.c:656
#3  0x00000000005ed4ad in flow_loops_find (loops=0x167d000) at
/mnt/svn/gcc-trunk/gcc/cfgloop.c:386
#4  0x000000000077f674 in ira (f=<value optimized out>) at
/mnt/svn/gcc-trunk/gcc/ira.c:3168
#5  0x0000000000781580 in rest_of_handle_ira () at
/mnt/svn/gcc-trunk/gcc/ira.c:3346
#6  0x00000000007eb69f in execute_one_pass (pass=0x1631ce0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1553
#7  0x00000000007eb965 in execute_pass_list (pass=0x1631ce0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1608
#8  0x00000000007eb977 in execute_pass_list (pass=0x1632200) at
/mnt/svn/gcc-trunk/gcc/passes.c:1609
#9  0x000000000092bb86 in tree_rest_of_compilation (fndecl=0x7ffff5cdf000) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#10 0x0000000000af13c2 in cgraph_expand_function (node=0x7ffff5ce4000) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1508
#11 0x0000000000af399a in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1567
#12 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1827
#13 0x0000000000af3f1a in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1031
#14 0x0000000000508b8c in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9844
#15 0x00000000008d5580 in compile_file (argc=15, argv=0x7fffffffdc48) at
/mnt/svn/gcc-trunk/gcc/toplev.c:591
#16 do_compile (argc=15, argv=0x7fffffffdc48) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1874
#17 toplev_main (argc=15, argv=0x7fffffffdc48) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1937
#18 0x00007ffff6586bbd in __libc_start_main () from /lib/libc.so.6
#19 0x00000000004ef5f1 in _start ()


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

* [Bug tree-optimization/46465] ICE: in calc_dfs_tree, at dominance.c:394 with -Os -fno-rerun-cse-after-loop -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce
  2010-11-13 16:29 [Bug tree-optimization/46465] New: ICE: in calc_dfs_tree, at dominance.c:394 with -Os -fno-rerun-cse-after-loop -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce zsojka at seznam dot cz
  2010-12-03  8:24 ` [Bug tree-optimization/46465] " zsojka at seznam dot cz
@ 2010-12-17 20:40 ` steven at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: steven at gcc dot gnu.org @ 2010-12-17 20:40 UTC (permalink / raw)
  To: gcc-bugs

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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #2 from Steven Bosscher <steven at gcc dot gnu.org> 2010-12-17 20:40:20 UTC ---
This is a dup of bug 46755.

*** This bug has been marked as a duplicate of bug 46755 ***


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

end of thread, other threads:[~2010-12-17 20:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-13 16:29 [Bug tree-optimization/46465] New: ICE: in calc_dfs_tree, at dominance.c:394 with -Os -fno-rerun-cse-after-loop -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce zsojka at seznam dot cz
2010-12-03  8:24 ` [Bug tree-optimization/46465] " zsojka at seznam dot cz
2010-12-17 20:40 ` 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).