Re: alignment warning

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

 



Andrew Haley <aph-gcc@xxxxxxxxxxxxxxxxxxx> writes:

> /* No data type wants to be aligned rounder than this.  */
> #define BIGGEST_ALIGNMENT 8

Presumably AVR puts a high value on compact data size, and presumably
has no penalty for accessing misaligned data.

> So, the maximum alignment on AVR is one byte, but for some reason the
> alignment of the vtable is set to something greater than that.  What I
> don't know is whether the vtable alignment really needs to be more
> than one byte.

It's because of TARGET_VTABLE_ENTRY_ALIGN, which defaults to
POINTER_SIZE.  config/avr/avr.h needs to override that.  Or the
default needs to change to MAX (POINTER_SIZE, BIGGEST_ALIGNMENT).

Ian

[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