public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/104719] Use of `std::move` in libstdc++ leads to worsened debug performance Date: Tue, 01 Mar 2022 20:12:41 +0000 [thread overview] Message-ID: <bug-104719-4-kKO5Czc5de@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-104719-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104719 --- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> --- There is a downside to always_inline, which might be similar to the stack usage problem mentioned in the llvm ticket. If a function grows too large, the optimiser can just give up and stop inlining. But for always_inline that gives a fatal error with no way to fix it. The attribute tells the compiler kitty isn't allowed to give up, the call must *always* be inline. If we liberally sprinkle it all over the std::lib and it results in compiler errors, users can't do anything about it. The code won't compile, period. Annotations that usually improve performance, but then sometimes give unavoidable errors are not a good idea.
next prev parent reply other threads:[~2022-03-01 20:12 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-28 16:20 [Bug libstdc++/104719] New: " vittorio.romeo at outlook dot com 2022-02-28 16:46 ` [Bug libstdc++/104719] " redi at gcc dot gnu.org 2022-02-28 16:50 ` redi at gcc dot gnu.org 2022-02-28 16:56 ` egallager at gcc dot gnu.org 2022-02-28 17:00 ` vittorio.romeo at outlook dot com 2022-02-28 17:16 ` redi at gcc dot gnu.org 2022-02-28 17:20 ` vittorio.romeo at outlook dot com 2022-02-28 17:24 ` redi at gcc dot gnu.org 2022-02-28 17:37 ` redi at gcc dot gnu.org 2022-03-01 2:23 ` vittorio.romeo at outlook dot com 2022-03-01 20:12 ` redi at gcc dot gnu.org [this message] 2022-03-01 20:14 ` redi at gcc dot gnu.org 2022-03-10 23:04 ` jason at gcc dot gnu.org 2022-03-26 23:37 ` jason at gcc dot gnu.org 2022-03-27 7:35 ` redi at gcc dot gnu.org 2022-05-04 15:34 ` cvs-commit at gcc dot gnu.org 2022-05-04 15:34 ` cvs-commit at gcc dot gnu.org 2022-05-04 15:49 ` unlvsur at live dot com 2022-05-04 15:55 ` redi at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-104719-4-kKO5Czc5de@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).