<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/85337>85337</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Define a generic macro for -mno-unaligned-access
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          wzssyqa
      </td>
    </tr>
</table>

<pre>
    Arm32/Arm64/LoongArch/MIPSr6 may disable unaligned memory access with option
 `-mno-unaligned-access`

Currently Arm32/Arm64 predefine `__ARM_FEATURE_UNALIGNED`, while LoongArch 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
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskk9vozwQhz-NuYwSYQMhHDjQEFfV2_ZdNVvtEdlmCl4ZnLXNRvTTr0jSf6u9wMHze-bxeIT3uhsRS5LdkKyOxBR668rTq_fzLxFJ285l5YaEEcYrN2xSwvi9tWNXOdUTxh_uvh3cBgYxQ6u9kAZhGoVZmC0MOFg3g1AKvYeTDj3YY9B2JHFN4grIJl4No129J1aXUrKJLxWX725yDsdgZvhiAkeHLb7oERdQ01RPDw3fV9-fn_bN82N1f3f7uK8XFNvBqdcG4V0cxNjCVX20AWYM688dH8QsEXQgLPcQ9IDwYh1MHiFYuPYUMFiH0OGITqsPmRYGoZw9J0KvPSjh8Qv9hzbmonzVbKrdbn84NPXdobq539dNQzYxSIT__yMJ_xzl1sHtbrdcySNCH8LRk6QijBPGO6XW3TitresI43LqXrUxgjDue3tq5NStVadJwnVLkppSmmVZ1JZJWySFiLCkOY3TrMgZjfoyfim2eSHUVqYyxjRLNts8z1uBadZKSbeRLlnM0jihKUtSFtP1ltKCKUpzmhcZU5KkMQ5Cm7Uxv4fFKdLeT1husyTJIyMkGn_eOsZGPMH5kDC2LKErl8xKTp0naWy0D_6DEnQwWNZvj_A2_4-h_3OlosmZ8q9x6dBPcq3sQBhf8Nff6ujsT1SBMH6W8oTxs_SfAAAA___t-f_w">