re PR ipa/63909 (ICE: SIGSEGV in ipa_icf_gimple::func_checker::compare_bb())
authorMartin Liska <mliska@suse.cz>
Wed, 10 Dec 2014 14:07:47 +0000 (15:07 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 10 Dec 2014 14:07:47 +0000 (14:07 +0000)
commit42c0b54df5517af870ae4f50c32886ac77af2046
treeb600d3f7eb04d4c25ea190a2ab57744df220b515
parentef9b7fad361c3b534588628ca8ae2b670aae934d
re PR ipa/63909 (ICE: SIGSEGV in ipa_icf_gimple::func_checker::compare_bb())

PR ipa/63909

        * gimple-iterator.h (gsi_start_bb_nondebug): New function.
* ipa-icf-gimple.c (func_checker::compare_bb): Correct iteration
replaces loop based on precomputed number of non-debug statements.
* gcc.dg/ipa/pr63909.c: New test.

From-SVN: r218578
gcc/ChangeLog
gcc/gimple-iterator.h
gcc/ipa-icf-gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr63909.c [new file with mode: 0644]