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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [pr45849.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
/* PR debug/45849 */
2
/* { dg-do compile } */
3
/* { dg-options "-g -Wno-uninitialized" } */
4
 
5
extern void bar (void);
6
 
7
void
8
foo (long repllen, char *rp)
9
{
10
  char *matchend;
11
  char *scan;
12
  long len;
13
  char *matchstart;
14
  char *text;
15
  char *t;
16
 
17
  repllen--;
18
 
19
  for (;;)
20
    {
21
      matchstart = t + rp[0];
22
      matchend = rp;
23
      len = matchstart - text + repllen * (matchend - matchstart);
24
      while (len)
25
        ;
26
      for (scan = text; scan != rp; scan++)
27
        bar ();
28
      if (matchstart)
29
        text = matchend;
30
    }
31
}

powered by: WebSVN 2.1.0

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