https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126302
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Slightly simplified:
short d, e, f;
int g;
static short
foo (short x)
{
return x == 0 || f % x;
}
static int
bar (signed char x)
{
e = foo (x);
return d;
}
static void
baz (unsigned char x)
{
g = bar (x);
}
int
main ()
{
int a = 128;
for (int i = 0; i < 4; ++i)
{
baz (a);
a = 0;
}
}
