URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
/* PR 11665
|
/* PR 11665
|
Orgin: jwhite@cse.unl.edu
|
Orgin: jwhite@cse.unl.edu
|
The problem was in initializer_constant_valid_p,
|
The problem was in initializer_constant_valid_p,
|
"for a CONSTRUCTOR, only the last element
|
"for a CONSTRUCTOR, only the last element
|
of the CONSTRUCTOR was being checked"
|
of the CONSTRUCTOR was being checked"
|
(from the email of the patch which fixed this).
|
(from the email of the patch which fixed this).
|
This used to ICE because GCC thought gdt_table was a
|
This used to ICE because GCC thought gdt_table was a
|
constant value when it is not. */
|
constant value when it is not. */
|
|
|
int x;
|
int x;
|
struct gdt
|
struct gdt
|
{
|
{
|
unsigned a,b,c,d,e,f;
|
unsigned a,b,c,d,e,f;
|
};
|
};
|
void f()
|
void f()
|
{
|
{
|
struct gdt gdt_table[2]=
|
struct gdt gdt_table[2]=
|
{
|
{
|
{
|
{
|
0,
|
0,
|
( (((unsigned)(&x))<<(24))&(-1<<(8)) ),
|
( (((unsigned)(&x))<<(24))&(-1<<(8)) ),
|
},
|
},
|
};
|
};
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.