Re: Unexpected unaligned access on arm

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

 



On Mon, 8 Jun 2020, Lars Poeschel wrote:


> What am I missing ? What am I doing wrong ?

The field

    struct in_addr  ip_src;

is 4-byte-aligned, forcing the containing structure to also be 4-byte aligned.
>From that the compiler deduces the minimum required alignment of individual
members.

Alexander



[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