public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/99077] [9/10 Regression] Cannot build libstdc++ with -fno-rtti Date: Mon, 29 Mar 2021 20:02:41 +0000 [thread overview] Message-ID: <bug-99077-4-rjk9rUris6@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-99077-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99077 --- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>: https://gcc.gnu.org/g:1d5d30410655f21bdeee6c5f2fd970247eea4d23 commit r10-9585-g1d5d30410655f21bdeee6c5f2fd970247eea4d23 Author: Jonathan Wakely <jwakely@redhat.com> Date: Fri Feb 12 10:37:56 2021 +0000 libstdc++: Fix bootstrap with -fno-rtti [PR 99077] When libstdc++ is built without RTTI the __ios_failure type is just an alias for std::ios_failure, so trying to construct it from an int won't compile. This changes the RTTI-enabled __ios_failure type to have the same constructor parameters as std::ios_failure, so that the constructor takes the same arguments whether RTTI is enabled or not. The __throw_ios_failure function now constructs the error_code, instead of the __ios_failure constructor. As a drive-by fix that error_code is constructed with std::generic_category() not std::system_category(), because the int comes from errno which corresponds to the generic category. libstdc++-v3/ChangeLog: PR libstdc++/99077 * src/c++11/cxx11-ios_failure.cc (__ios_failure(const char*, int)): Change int parameter to error_code, to match std::ios_failure. (__throw_ios_failure(const char*, int)): Construct error_code from int parameter. (cherry picked from commit 4591f7e5329dcc6ee9af2f314a050936d470ab5b)
next prev parent reply other threads:[~2021-03-29 20:02 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-11 23:39 [Bug libstdc++/99077] New: [9/10/11 " redi at gcc dot gnu.org 2021-02-11 23:39 ` [Bug libstdc++/99077] " redi at gcc dot gnu.org 2021-02-11 23:42 ` redi at gcc dot gnu.org 2021-02-12 14:43 ` cvs-commit at gcc dot gnu.org 2021-02-12 14:50 ` [Bug libstdc++/99077] [9/10 " redi at gcc dot gnu.org 2021-03-29 20:02 ` cvs-commit at gcc dot gnu.org [this message] 2021-03-29 20:06 ` [Bug libstdc++/99077] [9 " redi at gcc dot gnu.org 2021-04-19 9:31 ` cvs-commit at gcc dot gnu.org 2021-04-19 9:39 ` 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-99077-4-rjk9rUris6@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).