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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [20090206-2_0.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-lto-do link } */
2
/* { dg-skip-if "" { ! { i?86-*-linux* x86_64-*-linux* } } { "*" } { "" } } */
3
/* { dg-lto-options {{-fwhopr -fPIC}} } */
4
/* { dg-suppress-ld-options {-fPIC} } */
5
 
6
void func(int n) {
7
  static int __thread v = 0;
8
  int i;
9
  for (i = 0; i < n; ++i) {
10
    volatile int *p = &v;
11
    volatile int x __attribute__ ((unused)) = *p;
12
  }
13
}
14
 
15
int main(int argc, char **argv) {
16
  func(argc);
17
  return 0;
18
}

powered by: WebSVN 2.1.0

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