URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
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;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.