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