Re: Bit-field packing order changed between avrgccimplementations

Jan Waclawek <[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <PC195201212031107030263dd9a3d0a@TEST-VISTA>
>My evidence is clear, the data sent from the node compiled with the old 
>compiler is received correctly 

That's far of being a clear evidence. There are too many unknowns in your
hand we cannot see nor judge.

Can you please compile with your present compiler (into asm, with -S)
Johann's example and show the result here?


struct
{
    unsigned b0 :1;
    unsigned b1 :1;
    unsigned b2 :1;
    unsigned b3 :1;
    unsigned b4 :1;
    unsigned b5 :1;
    unsigned b6 :1;
    unsigned b7 :1;
} b;

void f1 (void)
{
    b.b7 = 1;
}


JW
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.