[Bug c/87581] Misaligned 16-bit read trap on x86 platform should be either fixed or documented.
amonakov at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 11 15:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87581
Alexander Monakov <amonakov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amonakov at gcc dot gnu.org
--- Comment #7 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
SSE2 is not anywhere "relatively new", it's almost 20 years old.
GCC makes it easy for portable code to perform unaligned accesses and have them
well-optimized without any arch-specific ifdeffery (nor undefined behavior):
simply use memcpy, fixed-size memcpy calls are recognized and transformed to
unaligned loads/stores internally.
More information about the Gcc-bugs
mailing list