public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [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
Date: Fri, 03 Dec 2010 08:24:00 -0000	[thread overview]
Message-ID: <bug-46465-4-ZINiE1uri8@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-46465-4@http.gcc.gnu.org/bugzilla/>

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


  reply	other threads:[~2010-12-03  8:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-13 16:29 [Bug tree-optimization/46465] New: " zsojka at seznam dot cz
2010-12-03  8:24 ` zsojka at seznam dot cz [this message]
2010-12-17 20:40 ` [Bug tree-optimization/46465] " steven at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-46465-4-ZINiE1uri8@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).