Commit ed856f4c by Richard Henderson Committed by Richard Henderson

* gcc.dg/990424-1.c: New test.

From-SVN: r26622
parent 10195bd8
Sun Apr 25 12:28:59 1999 Richard Henderson <rth@cygnus.com>
* gcc.dg/990424-1.c: New test.
1999-04-24 Craig Burley <craig@jcb-sc.com>
* g77.f-torture/execute/u77-test.f (main): Bug involving
......
/* Test that stack alignment is preserved with pending_stack_adjust
with stdcall functions. */
/* { dg-do run { target i?86-*-* } } */
/* { dg-options -mpreferred-stack-boundary=4 } */
void __attribute__((stdcall)) foo(int a, int b, int c);
int
main ()
{
foo(1, 2, 3);
foo(1, 2, 3);
exit (0);
}
void __attribute__((stdcall))
foo(int a, int b, int c)
{
static int last_align = -1;
int dummy, align = (int)&dummy & 15;
if (last_align < 0)
last_align = align;
else if (align != last_align)
abort ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment