This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: attribute ((packed)) on variables
- To: gcc at gcc dot gnu dot org
- Subject: Re: attribute ((packed)) on variables
- From: Etienne Lorrain <etienne_lorrain at yahoo dot fr>
- Date: Fri, 14 Apr 2000 17:50:14 +0200 (CEST)
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