[PATCH] avoid ice due to inconsistent argument types to fold_build (PR 90662)
Jeff Law
law@redhat.com
Fri Jun 14 01:35:00 GMT 2019
On 6/13/19 1:10 PM, Martin Sebor wrote:
> Attached is a fix for the fold_build call with inconsistent
> argument types introduced in a recent commit of mine.
>
> Tested on x86_64-linux.
>
> Martin
>
> gcc-90662.diff
>
> PR tree-optimization/90662 - strlen of a string in a vla plus offset not folded
>
> gcc/ChangeLog:
>
> PR tree-optimization/90662
> * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
> to the same type.
>
> gcc/testsuite/ChangeLog:
>
> PR tree-optimization/90662
> * gcc.dg/pr90866-2.c: New test.
> * gcc.dg/pr90866.c: Ditto.
OK
jeff
More information about the Gcc-patches
mailing list