From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18961 invoked by alias); 5 Aug 2004 15:26:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 18910 invoked by uid 48); 5 Aug 2004 15:26:07 -0000 Date: Thu, 05 Aug 2004 15:26:00 -0000 Message-ID: <20040805152607.18909.qmail@sourceware.org> From: "belyshev at lubercy dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040712084725.16490.kapalka@icslab.agh.edu.pl> References: <20040712084725.16490.kapalka@icslab.agh.edu.pl> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug rtl-optimization/16490] segfault while compiling with -fprofile-use X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg00396.txt.bz2 List-Id: ------- 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