URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// { dg-do run { xfail arm-*-* sh-*-* lm32-*-* } }
|
// { dg-do run { xfail arm-*-* sh-*-* lm32-*-* } }
|
|
|
// NMS:2003-04-21 this fails on strict aligned architectures again,
|
// NMS:2003-04-21 this fails on strict aligned architectures again,
|
// the patch was reverted because it broke something more important.
|
// the patch was reverted because it broke something more important.
|
|
|
// Copyright (C) 2002 Free Software Foundation, Inc.
|
// Copyright (C) 2002 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 8 Aug 2002
|
// Contributed by Nathan Sidwell 8 Aug 2002
|
|
|
// WRS SPR 63496, lost packed attribute when accessing a packed
|
// WRS SPR 63496, lost packed attribute when accessing a packed
|
// field. This matters on aligned architectures like sh
|
// field. This matters on aligned architectures like sh
|
|
|
struct thing { int m; };
|
struct thing { int m; };
|
|
|
struct pod
|
struct pod
|
{
|
{
|
char a;
|
char a;
|
thing m __attribute__ ((packed)); // { dg-warning "attribute ignored" "" { target default_packed } }
|
thing m __attribute__ ((packed)); // { dg-warning "attribute ignored" "" { target default_packed } }
|
};
|
};
|
|
|
int main ()
|
int main ()
|
{
|
{
|
thing t;
|
thing t;
|
pod p;
|
pod p;
|
|
|
p.m = t; /* runtime bus error here */
|
p.m = t; /* runtime bus error here */
|
|
|
return 0;
|
return 0;
|
|
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.