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:
 > > Could you provide a complete, small compilable example that produces the
 > > warning?
 > 
 > -------------------- source begin ---------------------
 > class c1
 > {
 >     virtual void x() { }
 > };
 > 
 > c1 zzz;
 > 
 > int main(int argc, char **argv)
 > {
 >  return 0;
 > }
 > -------------------- source end -----------------------
 > 
 > This is a full source code which prodices the warning message:
 > 
 > $> avr-g++ x.cpp
 > 
 > x.cpp:2: warning: alignment of $,1rxc1::_ZTV2c1$,1ry is greater than maximum object 
 > file alignment.  Using 1
 > 
 > The x86 version of gcc does not send any messages.

OK, please try this test with 'gcc -v'.  Show us the output.

Andrew.


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