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 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -Wuninitialized" } */
|
/* { dg-options "-O2 -Wuninitialized" } */
|
|
|
typedef union tree_node *tree;
|
typedef union tree_node *tree;
|
|
|
struct tree_common
|
struct tree_common
|
{
|
{
|
tree chain;
|
tree chain;
|
};
|
};
|
|
|
struct tree_decl
|
struct tree_decl
|
{
|
{
|
struct tree_common common;
|
struct tree_common common;
|
tree name;
|
tree name;
|
};
|
};
|
|
|
|
|
union tree_node
|
union tree_node
|
{
|
{
|
struct tree_common common;
|
struct tree_common common;
|
struct tree_decl decl;
|
struct tree_decl decl;
|
};
|
};
|
|
|
int pedantic;
|
int pedantic;
|
|
|
void
|
void
|
finish_struct (tree t, tree fieldlist, tree attributes)
|
finish_struct (tree t, tree fieldlist, tree attributes)
|
{
|
{
|
union tree_node * x;
|
union tree_node * x;
|
|
|
if (pedantic)
|
if (pedantic)
|
{
|
{
|
x = fieldlist;
|
x = fieldlist;
|
if (x->decl.name == 0)
|
if (x->decl.name == 0)
|
{
|
{
|
while (x)
|
while (x)
|
x = x->common.chain;
|
x = x->common.chain;
|
foo (fieldlist);
|
foo (fieldlist);
|
}
|
}
|
}
|
}
|
|
|
x = fieldlist;
|
x = fieldlist;
|
if (x)
|
if (x)
|
{
|
{
|
do
|
do
|
{
|
{
|
x = x->common.chain;
|
x = x->common.chain;
|
} while (x != 0);
|
} while (x != 0);
|
}
|
}
|
|
|
bar1 (&fieldlist);
|
bar1 (&fieldlist);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.