https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573
--- Comment #8 from Niall Douglas ---
Added revised bug to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86590
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573
--- Comment #7 from Marc Glisse ---
The real difference in -std=c++17 is _GLIBCXX_EXTERN_TEMPLATE. With -std=c++14,
we have many extern templates which the compiler almost never inlines. This
leaves existing inline functions small enough to be
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573
--- Comment #6 from Richard Biener ---
(In reply to Niall Douglas from comment #5)
> Thanks for the rapid feedback. Very very interesting that -std=c++17 causes
> spew for the copy case https://godbolt.org/g/Xnrgg2, yet -std=c++14 or
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573
--- Comment #5 from Niall Douglas ---
Thanks for the rapid feedback. Very very interesting that -std=c++17 causes
spew for the copy case https://godbolt.org/g/Xnrgg2, yet -std=c++14 or
-std=c++11 does not.
Is the -std=c++17 case worth opening a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573
--- Comment #4 from Richard Biener ---
Note we only manage to optimize it with the C++11 std::string.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573
Andrew Pinski changed:
What|Removed |Added
Keywords||missed-optimization