[Bug c++/66034] Enhancement request: fiber-local storage

2024-03-17 Thread avi at scylladb dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66034

--- Comment #3 from Avi Kivity  ---
Yes, this is relevant to user-level threads, not coroutines.

[Bug c++/66034] Enhancement request: fiber-local storage

2024-03-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66034

--- Comment #2 from Jonathan Wakely  ---
C++ coroutines are allocated on the heap though.

https://wg21.link/p0876 is more relevant here, but not approved yet.

[Bug c++/66034] Enhancement request: fiber-local storage

2024-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66034

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |WONTFIX
 Status|UNCONFIRMED |RESOLVED

--- Comment #1 from Andrew Pinski  ---
C++20 adds coroutines which like fibers and already contains local storage
state.

https://en.cppreference.com/w/cpp/language/coroutines

So this is a won't fix.