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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [noclone-1.c] - Blame information for rev 327

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp -fno-early-inlining"  } */
3
 
4
int global_1, global_2;
5
 
6
__attribute__((__noclone__)) int g (int b, int c)
7
 {
8
  global_1 = b;
9
  global_2 = c;
10
}
11
 
12
__attribute__((__noclone__)) int f (int a)
13
{
14
  /* Second parameter of g gets different values.  */
15
  if (a > 0)
16
    g (a, 3);
17
  else
18
    g (a, 5);
19
}
20
 
21
int main ()
22
{
23
  f (7);
24
  return 0;
25
}
26
 
27
 
28
/* { dg-final { scan-ipa-dump-times "versioned function" 0 "cp"  } } */
29
/* { dg-final { cleanup-ipa-dump "cp" } } */

powered by: WebSVN 2.1.0

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