On Sat, Sep 22, 2012 at 10:30 PM, Eric Botcazou <ebotca...@adacore.com> wrote:
> As demonstrated by the testcase, the new propagate_constants_for_unrolling can
> change the EH properties of a statement when it turns array accesses with
> variable index into array accesses with fixed index if -fnon-call-exception is
> enabled.
>
> The proposed fix is to call maybe_clean_or_replace_eh_stmt on the modified
> statement.  There is already a call to cleanup_tree_cfg at the end so this
> should be sufficient.
>
> Tested on x86-64/Linux, OK for the mainline?

Ok.

Thanks,
Richard.

>
> 2012-09-22  Eric Botcazou  <ebotca...@adacore.com>
>
>         PR tree-optimization/54669
>         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke
>         maybe_clean_or_replace_eh_stmt on the modified use statements.
>
>
> 2012-09-22  Eric Botcazou  <ebotca...@adacore.com>
>
>         * gcc.dg/pr54669.c: New test.
>
>
> --
> Eric Botcazou

Reply via email to