Commit aa62c188 by Andy Hutchinson

* gcc.c-torture/execute/pr40404.c: Use long for bitfield on 16bit int targets.

From-SVN: r154487
parent a67a5c02
2009-11-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org> 2009-11-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
* gcc.c-torture/execute/pr40404.c: Use long for bitfield on 16bit
int targets.
2009-11-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
* gcc-dg/Wtype-limits.c: Add line to correct line numbers. * gcc-dg/Wtype-limits.c: Add line to correct line numbers.
2009-11-23 H.J. Lu <hongjiu.lu@intel.com> 2009-11-23 H.J. Lu <hongjiu.lu@intel.com>
......
extern void abort (void); extern void abort (void);
#if (__SIZEOF_INT__ <= 2)
struct S {
unsigned long ui17 : 17;
} s;
#else
struct S { struct S {
unsigned int ui17 : 17; unsigned int ui17 : 17;
} s; } s;
#endif
int main() int main()
{ {
s.ui17 = 0x1ffff; s.ui17 = 0x1ffff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment