Re: [U-Boot] packed attribute problem

2010-10-11 Thread Balau
Dear all, I wanted to point out clues about why GCC manages the packed attribute in this way. The behavior is suspiciously similar to what the ARM RVDS compiler (armcc) does with the __packed qualifier: > [...] > Thus if you wish to define a pointer to a word that can be at any address > (i.e.

Re: [U-Boot] packed attribute problem

2010-10-04 Thread Balau
Dear Wolfgang Denk and Reinhard Meyer, The compiler (4.4.1) generates the expected 32bit store instruction when using: struct p { int n; } __attribute__ ((packed, aligned(4))); In case of hardware registers, I have yet to see a case where this is not true. Regards, Francesco On Mon, Oc