public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "belyshev at lubercy dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/16490] segfault while compiling with -fprofile-use Date: Thu, 05 Aug 2004 15:26:00 -0000 [thread overview] Message-ID: <20040805152607.18909.qmail@sourceware.org> (raw) In-Reply-To: <20040712084725.16490.kapalka@icslab.agh.edu.pl> ------- Additional Comments From belyshev at lubercy dot com 2004-08-05 15:26 ------- small testcase, use "-O1 -funroll-loops -fvpt -fbranch-probabilities" : ------------------------------------------------------------------------------ void bar (int k) { while (foo ()) { while (k++ < 0) baz (); } } ------------------------------------------------------------------------------ Program received signal SIGSEGV, Segmentation fault. bitmap_operation (to=0xbfffec40, from1=0x0, from2=0x0, operation=BITMAP_XOR) at ../../gcc/gcc/bitmap.c:511 511 bitmap_element *from2_ptr = from2->first; (gdb) where #0 bitmap_operation (to=0xbfffec40, from1=0x0, from2=0x0, operation=BITMAP_XOR) at ../../gcc/gcc/bitmap.c:511 #1 0x0815e2f2 in init_propagate_block_info (bb=0x851ee28, live=0x0, local_set=0x0, cond_local_set=0x0, flags=0) at ../../gcc/gcc/flow.c:1874 #2 0x0815e628 in propagate_block (bb=0x851ee28, live=0x851bcb8, local_set=0x0, cond_local_set=0x0, flags=0) at ../../gcc/gcc/flow.c:2012 #3 0x080e5c32 in rtl_split_block (bb=0x851eef0, insnp=0xb7b997a0) at ../../gcc/gcc/cfgrtl.c:517 #4 0x080e8bf4 in cfg_layout_split_block (bb=0x0, insnp=0x0) at ../../gcc/gcc/cfgrtl.c:2420 #5 0x080e1814 in make_forwarder_block (bb=0x851eef0, redirect_latch=1, redirect_nonlatch=0, except=0x0, conn_latch=0) at ../../gcc/gcc/cfgloop.c:589 #6 0x080e1a84 in canonicalize_loop_headers () at ../../gcc/gcc/cfgloop.c:722 #7 0x080e1be9 in flow_loops_find (loops=0x8518514, flags=Variable "flags" is not available. ) at ../../gcc/gcc/cfgloop.c:764 #8 0x082c4ef7 in loop_optimizer_init (dumpfile=0x0) at ../../gcc/gcc/loop-init.c:52 #9 0x08275912 in rest_of_handle_loop2 (decl=0x0, insns=0xb7b992e0) at ../../gcc/gcc/toplev.c:3074 #10 0x08276000 in rest_of_compilation (decl=0xb7ae8244) at ../../gcc/gcc/toplev.c:3364 #11 0x082b7214 in tree_rest_of_compilation (fndecl=0xb7ae8244, nested_p=false) at ../../gcc/gcc/tree-optimize.c:168 #12 0x0806b569 in c_expand_body_1 (fndecl=0xb7ae8244, nested_p=0) at ../../gcc/gcc/c-decl.c:6158 #13 0x0806b75d in c_expand_body (fndecl=0xb7ae8244) at ../../gcc/gcc/c-decl.c:6190 #14 0x082b96df in cgraph_expand_function (node=0xb7ae85e4) at ../../gcc/gcc/cgraphunit.c:538 #15 0x082b8ae3 in cgraph_assemble_pending_functions () at ../../gcc/gcc/cgraphunit.c:144 #16 0x082b8c04 in cgraph_finalize_function (decl=0xb7ae8244, nested=false) at ../../gcc/gcc/cgraphunit.c:225 #17 0x0806b451 in finish_function () at ../../gcc/gcc/c-decl.c:6115 #18 0x0804a806 in yyparse () at c-parse.y:385 #19 0x08052870 in c_parse_file () at c-parse.y:3029 #20 0x0809d425 in c_common_parse_file (set_yydebug=0) at ../../gcc/gcc/c-opts.c:1237 #21 0x082736c2 in compile_file () at ../../gcc/gcc/toplev.c:1822 #22 0x08277c5e in do_compile () at ../../gcc/gcc/toplev.c:4651 #23 0x08277cf3 in toplev_main (argc=0, argv=0xbffff8e4) at ../../gcc/gcc/toplev.c:4691 #24 0x080bc32c in main (argc=0, argv=0x0) at ../../gcc/gcc/main.c:35 Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 GCC build triplet|ia64-redhat-linux | GCC host triplet|ia64-redhat-linux | Known to fail| |3.4.1 3.4.2 Last reconfirmed|0000-00-00 00:00:00 |2004-08-05 15:26:05 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16490
next prev parent reply other threads:[~2004-08-05 15:26 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-07-12 8:47 [Bug rtl-optimization/16490] New: " kapalka at icslab dot agh dot edu dot pl 2004-07-12 8:50 ` [Bug rtl-optimization/16490] " kapalka at icslab dot agh dot edu dot pl 2004-07-12 8:51 ` kapalka at icslab dot agh dot edu dot pl 2004-07-12 14:26 ` pinskia at gcc dot gnu dot org 2004-08-05 15:26 ` belyshev at lubercy dot com [this message] 2004-08-08 1:26 ` wilson at gcc dot gnu dot org 2004-08-08 1:26 ` wilson at gcc dot gnu dot org 2004-08-11 20:05 ` cvs-commit at gcc dot gnu dot org 2004-08-11 20:08 ` cvs-commit at gcc dot gnu dot org 2004-08-11 20:10 ` wilson at gcc dot gnu dot org 2004-08-11 21:05 ` pinskia at gcc dot gnu dot org 2004-08-16 22:03 ` wilson at gcc dot gnu dot org 2004-08-17 0:14 ` wilson at gcc dot gnu dot 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=20040805152607.18909.qmail@sourceware.org \ --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: linkBe 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).