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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr48739-1.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR tree-optimization/48739 */
2
/* { dg-do compile } */
3
/* { dg-require-effective-target pthread } */
4
/* { dg-options "-O1 -ftree-parallelize-loops=2 -fno-tree-dominator-opts" } */
5
 
6
extern int g;
7
extern void bar (void);
8
 
9
int
10
foo (int x)
11
{
12
  int a, b, *c = (int *) 0;
13
  for (a = 0; a < 10; ++a)
14
    {
15
      bar ();
16
      for (b = 0; b < 5; ++b)
17
        {
18
          x = 0;
19
          c = &x;
20
          g = 1;
21
        }
22
    }
23
  *c = x;
24
  for (x = 0; x != 10; x++)
25
    ;
26
  return g;
27
}

powered by: WebSVN 2.1.0

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