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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [inline_4.c] - Blame information for rev 706

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile  { target i?86-*-linux* x86_64-*-linux* } } */
2
/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo2 -fdisable-ipa-inline -Wno-attributes" } */
3
int g;
4
__attribute__((always_inline)) void bar (void)
5
{
6
  g++;
7
}
8
 
9
int foo (void)
10
{
11
  bar ();
12
  return g;
13
}
14
 
15
int foo2 (void)
16
{
17
  bar();
18
  return g + 1;
19
}
20
 
21
/* { dg-final { scan-tree-dump-times "bar" 4 "optimized" } } */
22
/* { dg-final { cleanup-tree-dump "optimized" } } */
23
/* { dg-excess-errors "extra notes" } */

powered by: WebSVN 2.1.0

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