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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr45259.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/45259 */
2
/* { dg-do compile } */
3
/* { dg-options "-g -O2 -fpic -w" { target fpic } } */
4
 
5
struct S { void (*bar) (long); };
6
struct T { struct S *t; };
7
int w;
8
extern int baz (int);
9
 
10
void
11
foo (int x, int u, char *z)
12
{
13
  struct T *v;
14
  static void *y[256] = { &&l1, &&l2 };
15
  for (;;)
16
    switch (x)
17
      {
18
      l2:
19
        x = 9;
20
      case 9:
21
        goto *y[*z++];
22
      case 10:
23
      case 27:
24
      case 54:
25
      case 99:
26
      case 100:
27
      case 120:
28
      case 122:
29
      case 131:
30
      case 132:
31
      case 134:
32
      case 141:
33
      case 142:
34
        v->t->bar (u);
35
        v->t->bar (u);
36
      case 143:
37
        continue;
38
      l1:
39
      default:
40
        baz (w);
41
      }
42
}

powered by: WebSVN 2.1.0

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