[Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 11 13:04:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48159
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-11 12:53:49 UTC ---
Author: jakub
Date: Wed May 11 12:53:43 2011
New Revision: 173656
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173656
Log:
PR debug/48159
* tree-ssa.c (reset_debug_uses): New function.
* tree-flow.h (reset_debug_uses): New prototype.
* tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
* tree-loop-distribution.c (generate_loops_for_partition): Call
reset_debug_uses on the stmts that will be removed. Keep around
all debug stmts, don't count them as bits in partition bitmap.
(generate_builtin): Don't count debug stmts or labels as bits in
partition bitmap.
* gcc.dg/pr48159-1.c: New test.
* gcc.dg/pr48159-2.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr48159-1.c
trunk/gcc/testsuite/gcc.dg/pr48159-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-data-ref.c
trunk/gcc/tree-flow.h
trunk/gcc/tree-loop-distribution.c
trunk/gcc/tree-ssa.c
More information about the Gcc-bugs
mailing list