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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [20090219_0.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-lto-do link } */
2
/* { dg-require-effective-target fpic } */
3
/* { dg-lto-options {{-O3 -flto -flto-partition=1to1 -fPIC -r -nostdlib}} } */
4
 
5
struct Foo { int f1, f2, f3, f4, f5; };
6
 
7
int x = 0;
8
struct Foo *foo;
9
 
10
inline void Bar(int n){
11
  foo[x].f1 = 0;
12
  foo[x].f2 = 0;
13
  foo[x].f3 = 0;
14
  foo[x].f4 = 0;
15
  foo[x].f5 = n;
16
}
17
 
18
int ei[1];
19
inline void Baz(int n) {
20
  if (ei[n] == 1)
21
    Bar (0);
22
  else if (ei[n] == 0)
23
    Bar (1);
24
}
25
 
26
void mumble(void) {
27
  for (;;)
28
    Baz (0);
29
}

powered by: WebSVN 2.1.0

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