[Bug c++/78940] [missed optimization] Useless guard variable in thread_local defaulted constructor

2024-03-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78940 Andrew Pinski changed: What|Removed |Added CC||klaus.doldinger64@googlemai

[Bug c++/78940] [missed optimization] Useless guard variable in thread_local defaulted constructor

2024-03-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78940 Andrew Pinski changed: What|Removed |Added CC||marc.mutz at hotmail dot com ---

[Bug c++/78940] [missed optimization] Useless guard variable in thread_local defaulted constructor

2024-03-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78940 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.4

[Bug c++/78940] [missed optimization] Useless guard variable in thread_local defaulted constructor

2024-03-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78940 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED See Also|

[Bug c++/78940] [missed optimization] Useless guard variable in thread_local defaulted constructor

2024-03-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78940 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Known to work|

[Bug c++/78940] [missed optimization] Useless guard variable in thread_local defaulted constructor

2019-04-23 Thread a...@cloudius-systems.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78940 --- Comment #4 from Avi Kivity --- Since constexpr constructors do send the variable into the .data (or .tls) section, perhaps gcc can attempt to evaluate the initializer as if it (and any functions it calls) was marked constexpr. If it fails it

[Bug c++/78940] [missed optimization] Useless guard variable in thread_local defaulted constructor

2017-02-16 Thread marc.mutz at kdab dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78940 Marc Mutz changed: What|Removed |Added CC||marc.mutz at kdab dot com --- Comment #3

[Bug c++/78940] [missed optimization] Useless guard variable in thread_local defaulted constructor

2017-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78940 --- Comment #2 from Jonathan Wakely --- (In reply to Nadav Har'El from comment #1) > I don't know why the standard decided that the default constructor should > not be marked "constexpr", unlike the value-taking constructors. Because the

[Bug c++/78940] [missed optimization] Useless guard variable in thread_local defaulted constructor

2017-01-15 Thread nyh at math dot technion.ac.il
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78940 --- Comment #1 from Nadav Har'El --- Technically speaking, std::atomic's default constructor is not marked "constexpr" (unlike the value-taking constructor), so I'm guessing that at the time that gcc makes the decision to have these guards, it