OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [990424-1.c] - Rev 318

Compare with Previous | Blame | View Log

/* Test that stack alignment is preserved with pending_stack_adjust
   with stdcall functions.  */
 
/* { dg-do run } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options -mpreferred-stack-boundary=4 } */
 
void __attribute__((stdcall)) foo(int a, int b, int c);
 
extern void abort (void);
extern void exit (int);
 
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 ();
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.