[libc-commits] [PATCH] D116949: [libc] Add linux aarch64 syscall implementation.

Alex Brachet via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Jan 10 09:06:30 PST 2022


abrachet added inline comments.


================
Comment at: libc/src/__support/OSUtil/linux/aarch64/syscall.h:15
+#define REGISTER_DECL_0                                                        \
+  register long x8 __asm__("x8") = number;                                     \
+  register long x0 __asm__("x0");
----------------
I think `register` is (or soon to be) deprecated and reserved, and my understanding is that most compilers completely ignore it anyway. Should it be omitted here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116949/new/

https://reviews.llvm.org/D116949



More information about the libc-commits mailing list