Re: alignment warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux