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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [tailcall-3.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 jeremybenn
/* The return argument needs a type conversion which on some targets
2
   (e.g. s390) needs additional code.  So it is invalid to do tail
3
   call optimization here.  */
4
 
5
/* { dg-do compile } */
6
/* { dg-options "-O2" } */
7
 
8
extern void abort (void);
9
 
10
long long __attribute__((noinline))
11
foo ()
12
{
13
  return 3;
14
}
15
 
16
int __attribute__((noinline))
17
boo ()
18
{
19
  return foo ();
20
}
21
 
22
int
23
main ()
24
{
25
  if (boo () != 3)
26
    abort ();
27
}
28
 

powered by: WebSVN 2.1.0

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