On 01/23/2016 12:52 AM, Ian Lance Taylor wrote:
2016-01-22 Ian Lance Taylor <i...@google.com>* common.opt (fkeep-gc-roots-live): New option. * tree-ssa-loop-ivopts.c (add_candidate_1): If -fkeep-gc-roots-live, skip pointers. (add_iv_candidate_for_biv): Handle add_candidate_1 returning NULL. * doc/invoke.texi (Optimize Options): Document -fkeep-gc-roots-live. gcc/testsuite/ChangeLog: 2016-01-22 Ian Lance Taylor <i...@google.com> * gcc.dg/tree-ssa/ivopt_5.c: New test.
Patch not attached? Bernd