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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20060904-1.c] - Blame information for rev 301

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

Line No. Rev Author Line
1 297 jeremybenn
/* PR rtl-optimization/27616 */
2
/* Reported by Lee Ji Hwan <moonz@kaist.ac.kr> */
3
/* Testcase by Andrew Pinski <pinskia@gcc.gnu.org> */
4
 
5
struct chunk_s
6
{
7
  unsigned int size;
8
  int offset_next;
9
};
10
 
11
typedef struct chunk_s chunk_t;
12
 
13
void foo(chunk_t *first)
14
{
15
  chunk_t *cur;
16
  char *first0;
17
 
18
  do {
19
    first0 = (char *) first;
20
    cur = (chunk_t *) (first0 + first->offset_next);
21
    if ((chunk_t *) (first0 + cur->offset_next) != first)
22
      return ;
23
 
24
    first->offset_next = 0;
25
 
26
  } while (cur->size != 0);
27
}

powered by: WebSVN 2.1.0

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