URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* We should not crash trying to figure out the points-to sets for the below. We used to because we
|
/* We should not crash trying to figure out the points-to sets for the below. We used to because we
|
ended up adding pointers to the points-to set of the ANYTHING variable. */
|
ended up adding pointers to the points-to set of the ANYTHING variable. */
|
struct D
|
struct D
|
{
|
{
|
int n;
|
int n;
|
int c [8];
|
int c [8];
|
};
|
};
|
|
|
struct A
|
struct A
|
{
|
{
|
int i;
|
int i;
|
char *p;
|
char *p;
|
};
|
};
|
|
|
struct B
|
struct B
|
{
|
{
|
struct A *a;
|
struct A *a;
|
struct D *d;
|
struct D *d;
|
};
|
};
|
|
|
int dtInsert1 (struct B *b)
|
int dtInsert1 (struct B *b)
|
{
|
{
|
struct A a = { 0, 0 };
|
struct A a = { 0, 0 };
|
struct D *d;
|
struct D *d;
|
b->a = &a;
|
b->a = &a;
|
d = b->d;
|
d = b->d;
|
&d->c [d->n];
|
&d->c [d->n];
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.