alignment warning
Andrew Haley
aph-gcc@littlepinkcloud.COM
Wed Aug 8 15:30:00 GMT 2007
K,Av(Bvesdi Gy,Av(Brgy 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 $,1rx(Bc1::_ZTV2c1$,1ry(B 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.
More information about the Gcc-help
mailing list