Re: [PATCH] c++: Optimize constinit thread_local vars [PR101786]

2021-08-11 Thread Jason Merrill via Gcc-patches
On 8/6/21 4:16 AM, Jakub Jelinek wrote: Hi! The paper that introduced constinit mentioned in rationale that constinit can be used on externs as well and that it can be used to avoid the thread_local initialization wrappers, because the standard requires that if constinit is present on any

[PATCH] c++: Optimize constinit thread_local vars [PR101786]

2021-08-06 Thread Jakub Jelinek via Gcc-patches
Hi! The paper that introduced constinit mentioned in rationale that constinit can be used on externs as well and that it can be used to avoid the thread_local initialization wrappers, because the standard requires that if constinit is present on any declaration, it is also present on the