URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 --param max-fields-for-field-sensitive=2 -fdump-tree-alias" } */
|
/* { dg-options "-O2 --param max-fields-for-field-sensitive=2 -fdump-tree-alias" } */
|
|
|
struct Foo {
|
struct Foo {
|
int *p, *q;
|
int *p, *q;
|
};
|
};
|
|
|
int foo (int ***x) __attribute__((pure));
|
int foo (int ***x) __attribute__((pure));
|
|
|
int bar (int b)
|
int bar (int b)
|
{
|
{
|
int i;
|
int i;
|
struct Foo f;
|
struct Foo f;
|
int *p, **q;
|
int *p, **q;
|
p = &i;
|
p = &i;
|
f.p = &i;
|
f.p = &i;
|
f.q = f.p;
|
f.q = f.p;
|
if (b)
|
if (b)
|
q = &f.p;
|
q = &f.p;
|
else
|
else
|
q = &f.q;
|
q = &f.q;
|
return foo (&q);
|
return foo (&q);
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump "CALLUSED = { f.* i q }" "alias" } } */
|
/* { dg-final { scan-tree-dump "CALLUSED = { f.* i q }" "alias" } } */
|
/* { dg-final { cleanup-tree-dump "alias" } } */
|
/* { dg-final { cleanup-tree-dump "alias" } } */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.