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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20031113-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* PR optimization/12640
2
 
3
   We used to get into an infinite loop while trying to
4
   figure out `strlen (resultString)'.  This showed up as
5
   a stack overflow while compiling tk.  */
6
 
7
/* { dg-do compile } */
8
/* { dg-options "-O1" } */
9
 
10
extern __SIZE_TYPE__ strlen (const char *);
11
 
12
int i;
13
 
14
static void
15
SendEventProc (char *resultString)
16
{
17
  char *p;
18
 
19
  resultString = "";
20
  while (*p == '-')
21
    {
22
      if (p[2] == ' ')
23
        {
24
          resultString = p + 3;
25
        }
26
    }
27
  for (;;)
28
    {
29
      i = strlen (resultString) + 1;
30
    }
31
}
32
 

powered by: WebSVN 2.1.0

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