Open NickLewisL3H opened 1 year ago
Well, the latter is only for the Morello downstream fork as all supported AArch64 variants upstream work for this, but the code does seem unnecessary given the generic code in InitPreprocessor checks precisely for I32 (that one's a bit dubious, should probably just be < 64, but eh, 16-bit ints with 64-bit longs and pointers would be a weird target that most real-world code would hate), L64 and P64. Deleting it should be NFC upstream and fix the issue downstream.
@llvm/issue-subscribers-clang-driver
@llvm/issue-subscribers-backend-aarch64
The
_LP64
macro is set inclang/lib/Basic/Targets/AArch64.cpp
I think this is incorrect for two reasons:
_LP64
is the responsibility ofclang/lib/Frontend/InitPreprocessor.cpp
AArch64.cpp
code does not check that pointers and longs are actually 64-bits. For example AArch64 Morello has 128-bit pointers