[Bug libstdc++/92927] Bootstrap failed with CXXFLAGS="-O0"

2019-12-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92927 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/92927] Bootstrap failed with CXXFLAGS="-O0"

2019-12-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92927 --- Comment #4 from Jonathan Wakely --- Author: redi Date: Fri Dec 20 17:10:18 2019 New Revision: 279656 URL: https://gcc.gnu.org/viewcvs?rev=279656&root=gcc&view=rev Log: libstdc++: Add inline to maybe-constexpr functions (PR 92927) Originally

[Bug libstdc++/92927] Bootstrap failed with CXXFLAGS="-O0"

2019-12-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92927 --- Comment #3 from Jonathan Wakely --- As these functions were already inline the right fix is just to restore that for C++11. If that wasn't the case, an alternative fix would be to explicitly instantiate them in the library by adding this to s

[Bug libstdc++/92927] Bootstrap failed with CXXFLAGS="-O0"

2019-12-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92927 --- Comment #2 from Jonathan Wakely --- When the functions are not inline they are not instantiated by std::string at -O0: $ nm bad-stage1-src/c++11/string-inst.o | grep on_swap W _ZN9__gnu_cxx14__alloc_traitsISaIcEcE10_S_on_swa

[Bug libstdc++/92927] Bootstrap failed with CXXFLAGS="-O0"

2019-12-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92927 --- Comment #1 from Jonathan Wakely --- (In reply to Hongyu Wang from comment #0) > It seems to happen after r277588. Thanks for tracking down the revision that caused it. The problem is that the functions are 'constexpr' for C++14 mode (and th

[Bug libstdc++/92927] Bootstrap failed with CXXFLAGS="-O0"

2019-12-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92927 Jonathan Wakely changed: What|Removed |Added Keywords||build Status|UNCONFIRMED