This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/46717] Compiler segfault in profile-use mode
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Nov 2010 10:01:08 +0000
- Subject: [Bug middle-end/46717] Compiler segfault in profile-use mode
- Auto-submitted: auto-generated
- References: <bug-46717-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46717
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.11.30 10:01:03
Component|c++ |middle-end
Target Milestone|--- |4.6.0
Ever Confirmed|0 |1
--- Comment #7 from Uros Bizjak <ubizjak at gmail dot com> 2010-11-30 10:01:03 UTC ---
Confirmed with attached testcase and profiling data, "~/gcc-build/gcc/cc1plus
-O2 -fprofile-use -quiet film.ii":
Program received signal SIGSEGV, Segmentation fault.
walk_stmt_load_store_addr_ops (stmt=0x2aaab1b53100, data=0x2aaabb215160,
visit_load=<value optimized out>, visit_store=<value optimized out>,
visit_addr=0xb07330 <mark_address>)
at ../../gcc-svn/trunk/gcc/gimple.c:5022
5022 if (TREE_CODE (op) == ADDR_EXPR)
(gdb) bt
#0 walk_stmt_load_store_addr_ops (stmt=0x2aaab1b53100, data=0x2aaabb215160,
visit_load=<value optimized out>, visit_store=<value optimized out>,
visit_addr=0xb07330 <mark_address>)
at ../../gcc-svn/trunk/gcc/gimple.c:5022
#1 0x0000000000b07849 in rebuild_cgraph_edges ()
at ../../gcc-svn/trunk/gcc/cgraphbuild.c:471
#2 0x00000000009ae13b in tree_profiling ()
at ../../gcc-svn/trunk/gcc/tree-profile.c:549
#3 tree_profiling () at ../../gcc-svn/trunk/gcc/tree-profile.c:447
#4 0x00000000008b05c8 in execute_one_pass (pass=0x131bce0)
at ../../gcc-svn/trunk/gcc/passes.c:1553
#5 0x00000000008b0f66 in execute_ipa_pass_list (pass=0x131bce0)
at ../../gcc-svn/trunk/gcc/passes.c:1920
#6 0x0000000000b0bfe3 in ipa_passes ()
at ../../gcc-svn/trunk/gcc/cgraphunit.c:1710
#7 cgraph_optimize () at ../../gcc-svn/trunk/gcc/cgraphunit.c:1779
#8 0x0000000000b0c925 in cgraph_finalize_compilation_unit ()
at ../../gcc-svn/trunk/gcc/cgraphunit.c:1031
#9 0x00000000005a4576 in cp_write_global_declarations ()
at ../../gcc-svn/trunk/gcc/cp/decl2.c:3973
#10 0x000000000094c112 in compile_file (argc=5, argv=0x7fffffffcde8)
at ../../gcc-svn/trunk/gcc/toplev.c:813