Facing problem with bit fields, when i am compiling my code with GCC.

2006-04-05 Thread Devendra Mulakkayala
Hello, ISSUE: Facing problem with bit fields, when i am compiling my code with GCC. It was previously compiled with diab compiler and was working fine. In our code Union definition is as follows..., union { unsigned_8 indicator; struct { unsigned_8 unused : 6; unsigned_8 speed :1; unsigned_8

Re: Facing problem with bit fields, when i am compiling my code with GCC.

2006-04-05 Thread Richard Guenther
On 4/5/06, Devendra Mulakkayala [EMAIL PROTECTED] wrote: 2. I know that these bit fields are compiler dependent. Is there any option in GCC to set the bit fields from top to bottom ( MSB to LSB ) in structure. 3. As per the client requirement we are not supposed to change the code. I am