This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: alignment warning
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: KÃvesdi GyÃrgy <kgy at deverto dot hu>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 8 Aug 2007 10:04:23 +0100
- Subject: Re: alignment warning
- References: <200708081055.07678.kgy@deverto.hu>
K,Avvesdi Gy,Avrgy writes:
> I am using avr-gcc 4.2.1 and sometimes I got the following message:
>
> warning: alignment of $,1rxSerial::_ZTV6Serial$,1ry is greater than maximum object
> file alignment. Using 1
>
> I don't know what it is anyway and how could it be avoided. However, the
> generated code is good.
Without seeing the actual code that casues this warning? No. We're
clever, but we aren't telepathic. :-)
> Any idea?
The problem is caused by the fact that the compiler (or assembler;
could be either) generates a declaration that $,1rxSerial::_ZTV6Serial$,1ry
must be aligned at a particular boundary, but your linker doesn't
support such alignment.
Andrew.