[Bug c++/96780] debuginfo for std::move and std::forward isn't useful

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 1 20:06:05 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96780

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
But -O0 often compiles slower, because so much more code gets emitted and must
be assembled and linked.

So -O1 or -Og is often better for all of debugging and compilation speed and
runtime performance.

That aside, I don't feel strongly about whether this is done at -O0. Somebody
will want the other choice whatever we do.

The unique_ptr discussion seems off topic here, let's keep the more general
discussion to PR 104719 please.


More information about the Gcc-bugs mailing list