On Wed, Feb 26, 2020 at 11:29:18AM +0100, Richard Biener wrote: > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
This got fixed with Martin's C FE change, so I've just committed the testcases as obvious to trunk. 2020-03-03 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/93927 * gcc.c-torture/compile/pr93927-1.c: New test. * gcc.c-torture/compile/pr93927-2.c: New test. --- gcc/testsuite/gcc.c-torture/compile/pr93927-1.c.jj 2020-02-25 11:47:10.983971425 +0100 +++ gcc/testsuite/gcc.c-torture/compile/pr93927-1.c 2020-02-25 11:46:43.004382966 +0100 @@ -0,0 +1,9 @@ +/* PR tree-optimization/93927 */ + +__SIZE_TYPE__ strstr (const char *, const char *); + +char * +foo (char *x) +{ + return !!strstr (x, "0") ? "0" : "1"; +} --- gcc/testsuite/gcc.c-torture/compile/pr93927-2.c.jj 2020-02-25 11:47:13.930928081 +0100 +++ gcc/testsuite/gcc.c-torture/compile/pr93927-2.c 2020-02-25 11:46:57.304172632 +0100 @@ -0,0 +1,9 @@ +/* PR tree-optimization/93927 */ + +__SIZE_TYPE__ strchr (const char *, int); + +char * +foo (char *x) +{ + return !!strchr (x, 0) ? "0" : "1"; +} Jakub