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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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