On Tue, 2020-03-17 at 19:35 -0600, Martin Sebor via Gcc-patches wrote: > PR tree-optimization/94131 - ICE on printf with a VLA string and -fno-tree-ccp > > gcc/testsuite/ChangeLog: > > PR tree-optimization/94131 > * gcc.dg/pr94131.c: New test. > > gcc/ChangeLog: > > PR tree-optimization/94131 > * gimple-fold.c (get_range_strlen_tree): Fail for variable-length > types and decls. > * tree-ssa-strlen.c (get_range_strlen_dynamic): Avoid assuming > types have constant sizes. I approved this a week or so ago. I went ahead and committed it to get the P1 resolved.
jeff