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