[llvm] [AArch64][MachO] Add ptrauth ABI version to arm64e cpusubtype. (PR #104650)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 25 13:52:40 PDT 2024


mstorsjo wrote:

When compiled with GCC, this triggers hundreds of warnings like this:
```
In file included from /home/martin/code/llvm-project/llvm/include/llvm/Object/MachO.h:23,
                 from /home/martin/code/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp:43:
/home/martin/code/llvm-project/llvm/include/llvm/BinaryFormat/MachO.h: In function ‘unsigned int llvm::MachO::CPU_SUBTYPE_ARM64E_WITH_PTRAUTH_VERSION(unsigned int, bool)’:
/home/martin/code/llvm-project/llvm/include/llvm/BinaryFormat/MachO.h:1664:35: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
 1664 |          (PtrAuthKernelABIVersion ? CPU_SUBTYPE_ARM64E_KERNEL_PTRAUTH_ABI_MASK
      |           ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1665 |                                   : 0) |
      |                                   ~~~

```

https://github.com/llvm/llvm-project/pull/104650


More information about the llvm-commits mailing list