Re: [Tinycc-devel] bitfield handling

2017-04-29 Thread Michael Matz
Hi, On Fri, 28 Apr 2017, Vicente Bergas wrote: For example the following does not work: struct{short x:12; char y:1;}s; s.y=1; Note that the above is tricky: char can be signed and unsigned if not explicitely specified, and if it's signed then a 1-bit bitfield of char only contains values

Re: [Tinycc-devel] Annoying new warning

2017-04-29 Thread Michael Matz
Hi, On Sat, 29 Apr 2017, Christian Jullien wrote: No one looking at it? What is the behavior of this test when lower is unitialized? As the comment above the structure clearly says, this is the layout for x86 only (the x87 80bit long double type). ARMs long double type simply is double