OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr42237.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
struct A
struct A
{
{
  int p;
  int p;
};
};
 
 
struct B
struct B
{
{
  struct A n;
  struct A n;
  struct A m;
  struct A m;
  int x;
  int x;
  int y;
  int y;
  int z;
  int z;
};
};
 
 
extern int g1, g2;
extern int g1, g2;
 
 
static void __attribute__((noinline)) foo (struct B *b)
static void __attribute__((noinline)) foo (struct B *b)
{
{
  int t;
  int t;
 
 
  t = b->n.p;
  t = b->n.p;
  g1 = t;
  g1 = t;
  b->n.p = t+1;
  b->n.p = t+1;
  g2 = b->m.p;
  g2 = b->m.p;
 
 
  b->m = b->n;
  b->m = b->n;
}
}
 
 
void bar (struct B *b)
void bar (struct B *b)
{
{
  foo (b);
  foo (b);
}
}
 
 

powered by: WebSVN 2.1.0

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