[llvm-commits] llvm-gcc: fix for PR1332

2007-04-17 Thread Duncan Sands
The testcase: struct Z { int :1; int :0; int :1; } z; The zero width field causes the second :1 field to start at bit 32. This requires inserting 24 bits of padding. For some obscure reason the padding logic subtracts the number of bits of padding from the new field size before adding it,

Re: [llvm-commits] llvm-gcc: fix for PR1332

2007-04-17 Thread Devang Patel
On Apr 17, 2007, at 1:29 PM, Duncan Sands wrote: The testcase: struct Z { int :1; int :0; int :1; } z; The zero width field causes the second :1 field to start at bit 32. This requires inserting 24 bits of padding. For some obscure reason the padding logic subtracts the number of bits of