re PR debug/48159 (ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distrib...
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 May 2011 12:53:43 +0000 (14:53 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 May 2011 12:53:43 +0000 (14:53 +0200)
commitb03c30822bba445ae68699bd7e9efa8f8e07070a
treee56042c0e2d22f04c029f1f376845c9c63d30b83
parentb5e04de5e321eef54e6d85d155981fdbbdd09428
re PR debug/48159 (ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g)

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.

From-SVN: r173656
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr48159-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr48159-2.c [new file with mode: 0644]
gcc/tree-data-ref.c
gcc/tree-flow.h
gcc/tree-loop-distribution.c
gcc/tree-ssa.c