[Bug tree-optimization/47443] [4.6 Regression] ICE: SSA name in freelist but still referenced or SIGSEGV with -fstack-check=generic

2011-02-02 Thread dnovillo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47443

--- Comment #4 from Diego Novillo dnovillo at gcc dot gnu.org 2011-02-02 
17:47:40 UTC ---
Author: dnovillo
Date: Wed Feb  2 17:47:35 2011
New Revision: 169589

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=169589
Log:
PR tree-optimization/47265
PR tree-optimization/47443
* tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
if name still has some uses.

* gcc.c-torture/compile/pr47265.c: New test.
* gcc.dg/pr47443.c: New test.

Added:
branches/google/integration/gcc/testsuite/gcc.c-torture/compile/pr47265.c
branches/google/integration/gcc/testsuite/gcc.dg/pr47443.c
Modified:
branches/google/integration/gcc/ChangeLog
branches/google/integration/gcc/testsuite/ChangeLog
branches/google/integration/gcc/tree-ssa-forwprop.c


[Bug tree-optimization/47443] [4.6 Regression] ICE: SSA name in freelist but still referenced or SIGSEGV with -fstack-check=generic

2011-01-25 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47443

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||jakub at gcc dot gnu.org
 Resolution||DUPLICATE

--- Comment #2 from Jakub Jelinek jakub at gcc dot gnu.org 2011-01-25 
09:50:52 UTC ---
Apparently dup of PR47265, at least forward_propagate_addr_expr recurses there
too and after returning from the recursion suddenly one needed imm use
disappeared.

*** This bug has been marked as a duplicate of bug 47265 ***


[Bug tree-optimization/47443] [4.6 Regression] ICE: SSA name in freelist but still referenced or SIGSEGV with -fstack-check=generic

2011-01-25 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47443

--- Comment #3 from Jakub Jelinek jakub at gcc dot gnu.org 2011-01-25 
19:51:02 UTC ---
Author: jakub
Date: Tue Jan 25 19:50:56 2011
New Revision: 169250

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=169250
Log:
PR tree-optimization/47265
PR tree-optimization/47443
* tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
if name still has some uses.

* gcc.c-torture/compile/pr47265.c: New test.
* gcc.dg/pr47443.c: New test.

Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr47265.c
trunk/gcc/testsuite/gcc.dg/pr47443.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-forwprop.c


[Bug tree-optimization/47443] [4.6 Regression] ICE: SSA name in freelist but still referenced or SIGSEGV with -fstack-check=generic

2011-01-24 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47443

--- Comment #1 from Zdenek Sojka zsojka at seznam dot cz 2011-01-24 18:35:47 
UTC ---
Created attachment 23103
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=23103
different crash

$ gcc -O -fstack-check=generic testcase2.c
testcase2.c: In function 'foo':
testcase2.c:13:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.


It crashes at different place, but maybe it's the same problem:
Program received signal SIGSEGV, Segmentation fault.
0x00714225 in fold_comparison (loc=333, code=LT_EXPR,
type=0x77ed8498, op0=0x75d4b478, op1=0x75d4b898)
at /mnt/svn/gcc-trunk/gcc/fold-const.c:8587
8587  if (POINTER_TYPE_P (TREE_TYPE (arg0))
(gdb) bt
#0  0x00714225 in fold_comparison (loc=333, code=LT_EXPR,
type=0x77ed8498, op0=0x75d4b478, 
op1=0x75d4b898) at /mnt/svn/gcc-trunk/gcc/fold-const.c:8587
#1  0x006debf1 in fold_binary_loc (loc=333, code=LT_EXPR,
type=0x77ed8498, op0=0x75d4b478, 
op1=0x75d4b898) at /mnt/svn/gcc-trunk/gcc/fold-const.c:12708
#2  0x006f93a1 in fold_build2_stat_loc (loc=333, code=LT_EXPR,
type=0x77ed8498, op0=0x75d4b478, 
op1=0x75d4b898) at /mnt/svn/gcc-trunk/gcc/fold-const.c:13982
#3  0x00991baa in forward_propagate_into_gimple_cond
(stmt=0x75d3c460)
at /mnt/svn/gcc-trunk/gcc/tree-ssa-forwprop.c:422
#4  0x00991edd in tree_ssa_forward_propagate_single_use_vars () at
/mnt/svn/gcc-trunk/gcc/tree-ssa-forwprop.c:2085
#5  0x007f1ba6 in execute_one_pass (pass=0x160d000) at
/mnt/svn/gcc-trunk/gcc/passes.c:1562
#6  0x007f1ea5 in execute_pass_list (pass=0x160d000) at
/mnt/svn/gcc-trunk/gcc/passes.c:1617
#7  0x007f1eb7 in execute_pass_list (pass=0x160c940) at
/mnt/svn/gcc-trunk/gcc/passes.c:1618
#8  0x007f10ac in do_per_function_toporder (callback=0x7f1e90
execute_pass_list, data=0x160c880)
at /mnt/svn/gcc-trunk/gcc/passes.c:1148
#9  0x007f2346 in execute_ipa_pass_list (pass=0x160c9a0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1934
#10 0x00afd391 in ipa_passes () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1725
#11 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1797
#12 0x00afd5ea in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1042
#13 0x0050585c in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9843
#14 0x008dd544 in compile_file (argc=14, argv=0x7fffdad8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:591
#15 do_compile (argc=14, argv=0x7fffdad8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1874
#16 toplev_main (argc=14, argv=0x7fffdad8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1937
#17 0x765f1bbd in __libc_start_main () from /lib/libc.so.6
#18 0x004ec455 in _start ()