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/] [execute/] [align-nest.c] - Diff between revs 297 and 338

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

powered by: WebSVN 2.1.0

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