mirror of git://gcc.gnu.org/git/gcc.git
* gcc.dg/torture/pr37868.c: Use smaller bitfield for 16bit int targets.
From-SVN: r154474
This commit is contained in:
parent
dc8926ce36
commit
83a4e6e992
|
@ -1,3 +1,8 @@
|
|||
2009-11-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
|
||||
|
||||
* gcc.dg/torture/pr37868.c: Use smaller bitfield for 16bit int
|
||||
targets.
|
||||
|
||||
2009-11-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
|
||||
|
||||
* gcc.dg/tree-ssa/pr33920.c: Remove warning check for 16 bit target.
|
||||
|
|
|
@ -3,7 +3,14 @@
|
|||
/* { dg-skip-if "unaligned access" { sparc*-*-* } "*" "" } */
|
||||
|
||||
extern void abort (void);
|
||||
|
||||
#if (__SIZEOF_INT__ <= 2)
|
||||
struct X {
|
||||
unsigned char pad : 4;
|
||||
unsigned int a : 16;
|
||||
unsigned int b : 8;
|
||||
unsigned int c : 6;
|
||||
} __attribute__((packed));
|
||||
#else
|
||||
struct X {
|
||||
unsigned char pad : 4;
|
||||
unsigned int a : 32;
|
||||
|
@ -11,6 +18,9 @@ struct X {
|
|||
unsigned int c : 6;
|
||||
} __attribute__((packed));
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
int main (void)
|
||||
{
|
||||
struct X x;
|
||||
|
|
Loading…
Reference in New Issue