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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [tailcall-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-tailc-details" } */
3
extern void *alloca (__SIZE_TYPE__);
4
int q(int a);
5
int *v;
6
int
7
t(int a)
8
{
9
        int r,r1;
10
        if (a)
11
                r1=r = q(a-1);
12
        else
13
                return 0;
14
        /* Dead alloca should not disturb us.  */
15
        if (r!=r1)
16
                v=alloca(r);
17
        return r;
18
}
19
/* { dg-final { scan-tree-dump-times "Found tail call" 1 "tailc"} } */
20
/* { dg-final { cleanup-tree-dump "tailc" } } */

powered by: WebSVN 2.1.0

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