[clang] [llvm] [Clang][LLVM] Support for Fuchsia on ARM (PR #163848)

Roland McGrath via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 17 19:44:50 PDT 2025


================
@@ -332,7 +333,7 @@ ARMTargetInfo::ARMTargetInfo(const llvm::Triple &Triple,
     default:
       if (IsNetBSD)
         setABI("apcs-gnu");
-      else if (IsFreeBSD || IsOpenBSD || IsHaiku || IsOHOS)
+      else if (IsFreeBSD || IsFuchsia || IsOpenBSD || IsHaiku || IsOHOS)
----------------
frobtech wrote:

Ah right, that is the default for `-fshort-enum` IOW. I don't know why Linux long ago diverged from the clearly-published AAPCS on this, but for us matching Linux ABIs for this sort of detail (things likely relevant to porting code from arm-linux distinct from direct OS dependencies) is more important than published standards or CPU vendor's recommendations.  It would be nice if the code made it easier to discover that `aapcs-linux` means `aapcs` + `-fshort-enum`.

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


More information about the cfe-commits mailing list