[libcxx-commits] [PATCH] D122536: [libc++] Optimize `exception_ptr`, especially for the empty case

Fabian Wolff via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 20 09:19:27 PDT 2022


fwolff marked 3 inline comments as done.
fwolff added inline comments.


================
Comment at: libcxx/include/exception:145
+#ifndef _LIBCPP_EXCEPTION_PTR_GNU_INLINE
+#define _LIBCPP_EXCEPTION_PTR_GNU_INLINE __attribute__((__gnu_inline__)) inline
+#endif
----------------
Mordante wrote:
> We should validate whether the compiler supports this attribute.
The [[ https://clang.llvm.org/docs/AttributeReference.html#gnu-inline | documentation ]] seems to imply that either `__GNUC_GNU_INLINE__` or `__GNUC_STDC_INLINE__` will be defined if the `__gnu_inline__` attribute is supported, so that's what I am now checking for. Let me know if you had something else in mind.


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

https://reviews.llvm.org/D122536



More information about the libcxx-commits mailing list