This patch adds a testcase for PR61033 [1]. The bug is about compiler going into infinite loop while solving data-flow in vt_find_locations on arm-* targets. The issue in fixed in GCC 5 and later by Richard B.'s r211624 [2].
The bug affects GCC 4.8 and 4.9, but is unlikely to be fixed there. This patch adds a regression test to make sure we catch the problem should it re-appear again. Tested on arm-linux-gnueabihf and x86_64-linux-gnu. OK to apply? [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61033 [2] http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=211625 2014-06-13 Richard Biener <rguent...@suse.de * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Rewrite to propagate the VN result into all uses where possible and to remove stmts becoming dead because of that. (eliminate): Generalize stmt removal handling, remove in reverse dominator order to support proper debug stmt generation. Update stmts before removing stmts. * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert. -- Maxim Kuvyrkov www.linaro.org
1bf2ea41.diff
Description: Binary data