[PATCH] Add offset_int to guard HOST_WIDE_INT overflow (PR tree-optimization/82042).

Richard Biener richard.guenther@gmail.com
Wed Sep 20 15:47:00 GMT 2017


On Wed, Sep 20, 2017 at 9:50 AM, Martin Liška <mliska@suse.cz> wrote:
> Hi.
>
> This is partial fix for the PR, where I calculate 2 offsets in offset_int type.
>
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
>
> Ready to be installed?

That seems to poorly handle the cases in offset_overlap_p.  What kind of
overflow do we see here?

Richard.

> Martin
>
> gcc/ChangeLog:
>
> 2017-09-20  Martin Liska  <mliska@suse.cz>
>
>         PR tree-optimization/82042
>         * alias.c (memrefs_conflict_p): Calculate offset in offset_int
>         type.
>         * cse.c (use_related_value): Likewise.
> ---
>  gcc/alias.c | 10 ++++++++--
>  gcc/cse.c   | 14 ++++++++++----
>  2 files changed, 18 insertions(+), 6 deletions(-)
>
>



More information about the Gcc-patches mailing list