OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20030907-1.c] - Diff between revs 297 and 338

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)) ),
    },
    },
};
};
}
}
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.