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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr46867.c] - Rev 801

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

/* PR debug/46867 */
/* { dg-do compile } */
/* { dg-options "-O -g" } */
 
typedef __PTRDIFF_TYPE__ ptrdiff_t;
 
extern void *bar (void);
 
void
foo (int x, char *r1, char *r2, __INTPTR_TYPE__ *rp, char *t)
{
  char *tx = tx;
  char **cc = bar ();
  ptrdiff_t rx = r1 - r2;
  for (;;)
    {
      char *cp1 = (char *) *rp;
      char *cp2 = t;
      char *s;
      ptrdiff_t len = cp1 - tx + rx * (cp2 - cp1);
      while (len)
	;
      for (s = tx; s; s++)
	;
      while (s)
	if (s == cc[s - r1])
	  if (x)
	    bar ();
      if (cp1)
	tx = cp2;
    }
}
 

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

powered by: WebSVN 2.1.0

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