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/] [inline-3.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-einline2" } */
3
/* { dg-add-options bind_pic_locally } */
4
 
5
extern void inlined ();
6
void inline_me_too (void);
7
void inline_through_me (void (*ptr)(void));
8
void
9
inline_me (void)
10
{
11
  inlined();
12
}
13
 
14
void main(void)
15
{
16
  inline_through_me (inline_me);
17
  inline_through_me (inline_me_too);
18
}
19
void
20
inline_through_me (void (*ptr)(void))
21
{
22
  ptr();
23
}
24
 
25
void
26
inline_me_too (void)
27
{
28
  inlined();
29
}
30
/* { dg-final { scan-tree-dump-times "Inlining inline_me " 1 "einline2"} } */
31
/* { dg-final { scan-tree-dump-times "Inlining inline_me_too " 1 "einline2"} } */
32
/* { dg-final { cleanup-tree-dump "einline2" } } */

powered by: WebSVN 2.1.0

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