URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
|
|
void foo(int n)
|
void foo(int n)
|
{
|
{
|
typedef struct
|
typedef struct
|
{
|
{
|
int value;
|
int value;
|
} myint;
|
} myint;
|
|
|
struct S
|
struct S
|
{
|
{
|
int i[n];
|
int i[n];
|
unsigned int b:1;
|
unsigned int b:1;
|
myint mi;
|
myint mi;
|
} __attribute__ ((packed)) __attribute__ ((aligned (4)));
|
} __attribute__ ((packed)) __attribute__ ((aligned (4)));
|
|
|
struct S s[2];
|
struct S s[2];
|
int k;
|
int k;
|
|
|
for (k = 0; k < 2; k ++)
|
for (k = 0; k < 2; k ++)
|
s[k].mi.value = 0;
|
s[k].mi.value = 0;
|
}
|
}
|
|
|
int main ()
|
int main ()
|
{
|
{
|
foo (2);
|
foo (2);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.