This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: alignment warning


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.


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