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.
2009-11-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
/* { 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;
unsigned int c : 6;
} __attribute__((packed));
+#endif
+
+
int main (void)
{
struct X x;