------- Comment #1 from tbm at gcc dot gnu dot org 2006-08-10 19:37 -------
(gdb) run -O2 tt.cc
Starting program: /usr/local/libexec/gcc/i686-pc-linux-gnu/4.2.0/cc1plus -O2
tt.cc
bar* testcase()
Analyzing compilation unitPerforming intraprocedural optimizations
Assembling functions:
bar* testcase()
Program received signal SIGSEGV, Segmentation fault.
0x08517abc in add_reg_br_prob_note (last=<value optimized out>,
probability=5347)
at gcc/cfgexpand.c:58
58 if (!any_condjump_p (last)
(gdb) where
#0 0x08517abc in add_reg_br_prob_note (last=<value optimized out>,
probability=5347)
at gcc/cfgexpand.c:58
#1 0x08517fd0 in expand_gimple_basic_block (bb=0x40362900)
at gcc/cfgexpand.c:1128
#2 0x0851938c in tree_expand_cfg () at gcc/cfgexpand.c:1634
#3 0x08514c86 in execute_one_pass (pass=0x872e320) at gcc/passes.c:864
#4 0x08514e57 in execute_pass_list (pass=0x872e320) at gcc/passes.c:911
#5 0x081cc676 in tree_rest_of_compilation (fndecl=0x4040fe70)
at gcc/tree-optimize.c:418
#6 0x08131c7d in expand_body (fn=0x4040fe70) at gcc/cp/semantics.c:3072
#7 0x08566564 in cgraph_expand_function (node=0x403e2bc8)
at gcc/cgraphunit.c:1194
#8 0x0856954a in cgraph_optimize () at gcc/cgraphunit.c:1259
#9 0x080d6aba in cp_finish_file () at gcc/cp/decl2.c:3341
#10 0x0819abef in c_common_parse_file (set_yydebug=0) at gcc/c-opts.c:1165
#11 0x084e0a0d in toplev_main (argc=3, argv=0xbffff9f4) at gcc/toplev.c:999
#12 0x081a9972 in main (argc=Cannot access memory at address 0x29
) at gcc/main.c:35
(gdb)
--
tbm at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Known to fail| |4.0.3 4.1.1 4.2.0
Known to work| |3.3.6 3.4.6
Last reconfirmed|0000-00-00 00:00:00 |2006-08-10 19:37:19
date| |
Summary|ICE (segfault) when |[4.0/4.1/4.2 regression] ICE
|comparing pointers with -O |(segfault in
|(and higher) |add_reg_br_prob_note) when
| |comparing pointers with -O
| |(and higher)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28683