Closed as not planned
Description
Arm32/Arm64/LoongArch/MIPSr6/RISCV may disable unaligned memory access with option
-mno-unaligned-access
Currently Arm32/Arm64 predefine __ARM_FEATURE_UNALIGNED
, while LoongArch, RISC-V and MIPSr6 not yet.
Maybe it's time for use to define a more generic predefined macro for this case.
Will __UNALIGN_ACCESS_DISABLED__
be OK?
For GCC, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555