This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/85616] ARM target using -O2 may cause unaligned access


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85616

--- Comment #3 from ktkachov at gcc dot gnu.org ---
Though the example code given breaks C's strict aliasing rules, doesn't it?
bug_start is an array of chars (byte-aligned) but the stores to it are done as
ints, which expect word alignment, so this would be invoking undefined
behaviour.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]