public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jsm28 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/105671] [11/12/13 Regression] Unexplained "undefined reference" error Date: Thu, 26 May 2022 23:09:34 +0000 [thread overview] Message-ID: <bug-105671-4-s129nUoinN@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-105671-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105671 Joseph S. Myers <jsm28 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Unexplained "undefined |[11/12/13 Regression] |reference" error |Unexplained "undefined | |reference" error CC| |jsm28 at gcc dot gnu.org Component|c++ |libstdc++ Target Milestone|--- |11.4 --- Comment #2 from Joseph S. Myers <jsm28 at gcc dot gnu.org> --- I'm seeing the same undefined reference on a customer test case. I haven't reduced it to a self-contained test case either, but as far as I can see this is a libstdc++ issue (rather than a front-end or LTO bug). _M_high_mark (which is new in libstdc++ in GCC 11) isn't exported from libstdc++.so (it's present in libstdc++.a), presumably because the symbol version maps don't include it, so if the compiler decides to inline one of the functions from the header that calls _M_high_mark, without inlining _M_high_mark itself, there is an undefined reference to _M_high_mark. (This selective inlining is what I haven't reproduced in a self-contained test, even when adjusting various inlining parameters, but it would explain the undefined reference.)
next prev parent reply other threads:[~2022-05-26 23:09 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-20 10:06 [Bug c++/105671] New: " christian.morales.vega at gmail dot com 2022-05-20 10:08 ` [Bug c++/105671] " christian.morales.vega at gmail dot com 2022-05-26 23:09 ` jsm28 at gcc dot gnu.org [this message] 2022-05-27 10:19 ` [Bug libstdc++/105671] [11/12/13 Regression] " redi at gcc dot gnu.org 2022-05-27 13:51 ` christian.morales.vega at gmail dot com 2022-05-27 14:23 ` cvs-commit at gcc dot gnu.org 2022-05-27 14:25 ` [Bug libstdc++/105671] [11/12 " redi at gcc dot gnu.org 2022-06-08 15:53 ` cvs-commit at gcc dot gnu.org 2022-06-08 16:10 ` [Bug libstdc++/105671] [11 " redi at gcc dot gnu.org 2022-07-07 23:33 ` cvs-commit at gcc dot gnu.org 2022-07-07 23:34 ` 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-105671-4-s129nUoinN@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).