zig/test/c_abi
Alex Rønne Petersen c9e67e71c1
std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm().
The old isARM() function was a portability trap. With the name it had, it seemed
like the obviously correct function to use, but it didn't include Thumb. In the
vast majority of cases where someone wants to ask "is the target Arm?", Thumb
*should* be included.

There are exactly 3 cases in the codebase where we do actually need to exclude
Thumb, although one of those is in Aro and mirrors a check in Clang that is
itself likely a bug. These rare cases can just add an extra isThumb() check.
2024-11-03 09:29:30 +01:00
..
cfuncs.c mips: fix C ABI compatibility 2024-09-07 23:46:30 -07:00
main.zig std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm(). 2024-11-03 09:29:30 +01:00