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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr32450.c] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
/* Contributed by Joost VandeVondele  <jv244@cam.ac.uk> */
2
 
3
/* { dg-do run } */
4
/* { dg-require-profiling "-pg" } */
5
/* { dg-options "-O2 -pg" } */
6
/* { dg-options "-O2 -pg -static" { target hppa*-*-hpux* } } */
7
 
8
extern void abort (void);
9
 
10
int stack_pointer;
11
 
12
void
13
__attribute__((noinline))
14
mystop ()
15
{
16
  abort ();
17
}
18
 
19
void
20
__attribute__((noinline))
21
add ()
22
{
23
  if (stack_pointer + 1 > 10)
24
    mystop ();
25
 
26
  stack_pointer = stack_pointer + 1;
27
}
28
 
29
int main ()
30
{
31
  add ();
32
  return stack_pointer - 1;
33
}

powered by: WebSVN 2.1.0

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