AW: ARMv7: VLDR instruction for unaligned address (GCC 9.5.0)

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

 



Florian Weimer wrote:

> I don't think the C++ type system models non-natural alignment for references.

Declaring the struct __attribute__((packed)) yields the error "cannot bind packed field 'data.Data::id' to 'long long unsigned int&'" which fits your explanation. However, declaring it __attribute__((aligned(1))) compiles (but still fails at runtime). Shouldn't the compiler complain about misaligned references at the call site?

Christian





[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