OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr32450.c] - Rev 414

Go to most recent revision | Compare with Previous | Blame | View Log

/* Contributed by Joost VandeVondele  <jv244@cam.ac.uk> */
 
/* { dg-do run } */
/* { dg-require-profiling "-pg" } */
/* { dg-options "-O2 -pg" } */
/* { dg-options "-O2 -pg -mtune=core2" { target { i?86-*-* x86_64-*-* } } } */
/* { dg-options "-O2 -pg -static" { target hppa*-*-hpux* } } */
 
extern void abort (void);
 
int stack_pointer;
 
void
__attribute__((noinline))
mystop ()
{
  abort ();
}
 
void
__attribute__((noinline))
add ()
{
  if (stack_pointer + 1 > 10)
    mystop ();
 
  stack_pointer = stack_pointer + 1;
}
 
int main ()
{
  add ();
  return stack_pointer - 1;
}
 
/* { dg-final { cleanup-profile-file } } */
 

Go to most recent revision | 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.