[libcxx-commits] [PATCH] D116144: [libcxx] [Coroutines] Support noop_coroutine for GCC

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Dec 26 20:11:00 PST 2021


Quuxplusone accepted this revision as: Quuxplusone.
Quuxplusone added inline comments.


================
Comment at: libcxx/include/__coroutine/noop_coroutine_handle.h:23-25
+// Avoid any other compiler which didn't implement '__builtin_coro_noop'
+// nor GCC to compile this.
+#if __has_builtin(__builtin_coro_noop) || defined(_LIBCPP_COMPILER_GCC)
----------------



================
Comment at: libcxx/include/__coroutine/noop_coroutine_handle.h:77-78
+#elif defined(_LIBCPP_COMPILER_GCC)
+    // GCC didn't implement '__builtin_coro_noop()' and construct the
+    // frame for noop_coroutine from source instead.
+    struct __noop_coroutine_frame_ty_ {
----------------



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

https://reviews.llvm.org/D116144



More information about the libcxx-commits mailing list