This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug in sibling call optimizations
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Bug in sibling call optimizations
- From: Greg McGary <greg at mcgary dot org>
- Date: Fri, 14 Jul 2000 18:25:32 -0700
The following fails with sibling-call optimizations
and succeeds without them.
------------------------------------------------------------------------------
typedef struct trio { int a, b, c; } trio;
int
bar (int i, trio t)
{
if (t.a == t.b || t.a == t.c)
abort ();
}
int
foo (trio t, int i)
{
return bar (i, t);
}
main ()
{
trio t = { 1, 2, 3 };
foo (t, 4);
exit (0);
}
------------------------------------------------------------------------------
Greg