[Bug tree-optimization/94125] [9/10 Regression] wrong code at -O3 on x86_64-linux-gnu
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 10 17:25:41 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94125
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Somewhat reduced testcase:
unsigned char b, f;
short d[1][8][1], *g = &d[0][3][0];
int
main ()
{
int k[] = { 0, 0, 0, 4, 0, 0 };
for (int c = 2; c >= 0; c--)
{
b = f;
*g = k[c + 3];
k[c + 1] = 0;
}
for (int i = 0; i < 8; i++)
if (d[0][i][0] != 0)
__builtin_abort ();
return 0;
}
More information about the Gcc-bugs
mailing list