[Bug tree-optimization/86532] [9 Regression] Wrong code due to a wrong strlen folding starting with r262522
bernd.edlinger at hotmail dot de
gcc-bugzilla@gcc.gnu.org
Tue Jul 17 21:17:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86532
--- Comment #19 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
sorry wrong test case:
$ cat part.c
cat part.c
#define a "121\01"
int main ()
{
volatile int i=4;
int n = __builtin_strlen (&a[0]);
n += __builtin_strlen (&a[i]);
if (n != 4)
__builtin_abort ();
}
More information about the Gcc-bugs
mailing list