This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: attribute ((packed)) on variables


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]