[PATCH] Add testcase for PR61033

Maxim Kuvyrkov maxim.kuvyrkov@linaro.org
Sat Feb 20 17:01:00 GMT 2016

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  <rguenther@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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1bf2ea41.diff
Type: application/octet-stream
Size: 1956 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160220/b3e62579/attachment.obj>

More information about the Gcc-patches mailing list