[PATCH] D92662: [Clang][Coroutine] Drop const attribute on pthread_self when coroutine is enabled

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 9 14:48:27 PST 2020


MaskRay added a comment.

It is worth requesting clarification on GCC `__attribute__((const))`: (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66512)

If the attribute is not suitable, glibc should drop it. The compiler can add `readnone`/`readonly` if appropriate.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92662



More information about the cfe-commits mailing list