Skip to content

Define a generic macro for -mno-unaligned-access #85337

Closed as not planned
Closed as not planned
@wzssyqa

Description

@wzssyqa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'wontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions