[PATCH] D86508: [clang] implement+test remaining C90 __builtin_ functions

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 1 15:06:22 PDT 2020


aaron.ballman added inline comments.


================
Comment at: clang/include/clang/Basic/Builtins.def:488
+BUILTIN(__builtin_calloc, "v*zz", "F")
+BUILTIN(__builtin_exit, "vi", "Fr")
 BUILTIN(__builtin_fprintf, "iP*cC*.", "Fp:1:")
----------------
rsmith wrote:
> aaron.ballman wrote:
> > Should we be adding `atexit()` as well?
> GCC doesn't have a `__builtin_atexit`, so we'd need some reason to invent one.
Ah, I didn't realize this was for GCC compatibility. Thanks!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D86508



More information about the cfe-commits mailing list