attribute ((packed)) on variables

Etienne Lorrain etienne_lorrain@yahoo.fr
Fri Apr 14 08:50:00 GMT 2000


Christian Häggström wrote:
> char name[33] __attribute__((aligned(1)));
> char name[33] __attribute__((packed));

  I got this problem also - you are not alone.
  My solution is a sed '/align 32/d' between compiler
 and linker.

  You could recompile the compiler commenting some
 of the defines (CONSTANT_ALIGNMENT and DATA_ALIGNMENT).

  For reference,
http://gcc.gnu.org/ml/gcc-bugs/1999-11n/msg00294.html
http://gcc.gnu.org/ml/gcc-bugs/1999-11n/msg00807.html
http://gcc.gnu.org/ml/gcc-bugs/1999-12n/msg00005.html


  Etienne.

___________________________________________________________
Do You Yahoo!?
Achetez, vendez! À votre prix! Sur http://encheres.yahoo.fr


More information about the Gcc mailing list