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.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [debug-4.c] - Diff between revs 298 and 384

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

Rev 298 Rev 384
/* This testcase failed, because scope containing baz was not emitted
/* This testcase failed, because scope containing baz was not emitted
   (doesn't contain any instructions) and DWARF-2 couldn't find baz origin.  */
   (doesn't contain any instructions) and DWARF-2 couldn't find baz origin.  */
/* { dg-do compile } */
/* { dg-do compile } */
 
 
struct A { char *a, *b, *c, *d; };
struct A { char *a, *b, *c, *d; };
 
 
static int
static int
bar (struct A *x)
bar (struct A *x)
{
{
  return x->c - x->b;
  return x->c - x->b;
}
}
 
 
void
void
foo (void)
foo (void)
{
{
  struct A e;
  struct A e;
 
 
  {
  {
    int baz (void)
    int baz (void)
      {
      {
        return bar (&e);
        return bar (&e);
      }
      }
  }
  }
  if (e.c - e.a > e.d - e.a)
  if (e.c - e.a > e.d - e.a)
    e.c = e.d;
    e.c = e.d;
}
}
 
 

powered by: WebSVN 2.1.0

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