[PATCH] D134717: [Clang][AArch64] Fix va_arg with -mgeneral-regs-only

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 28 23:16:42 PDT 2022


MaskRay added a comment.

It seems that the intention of `-mgeneral-regs-only` is to prevent FP and SIMD register use.

aarch64-linux-gnu-gcc has such an error

  error: ‘-mgeneral-regs-only’ is incompatible with the use of floating-point types

Clang doesn't reject FP in Sema yet, but I think changing CodeGen is incorrect.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134717



More information about the cfe-commits mailing list