From: Alexandre Oliva <oliva@adacore.com>
To: Jonathan Wakely <jwakely.gcc@gmail.com>
Cc: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org
Subject: Re: [PATCH] [libstdc++] introduce --disable-compat-libstdcxx-abi
Date: Thu, 18 Apr 2024 11:45:30 -0300 [thread overview]
Message-ID: <orcyqmafw5.fsf@lxoliva.fsfla.org> (raw)
In-Reply-To: <CAH6eHdQx3whgsiOLy8XRyx8_G7GqiYocObf2_FmWt9Y-Tm4Pvg@mail.gmail.com> (Jonathan Wakely's message of "Tue, 16 Apr 2024 07:55:11 +0100")
On Apr 16, 2024, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>> +dnl
>> +dnl Enable -Wabi=2 if not overridden by --disable-compat-libstdcxx-abi.
>> +dnl
>> +AC_DEFUN([GLIBCXX_ENABLE_WABI], [
>> + # Default.
>> + WARN_FLAGS_WABI=\ -Wabi=2
>> + AC_MSG_CHECKING([for --disable-compat-libstdcxx-abi])
>> + AC_ARG_ENABLE([compat-libstdcxx-abi],
> We have the GLIBCXX_ENABLE macro to simplify creating new --enable options.
*nod*. There was some reason why I didn't use it at first. Maybe it
can be used with the patch as it ended up. Will revisit.
>> + AC_HELP_STRING([--disable-compat-libstdcxx-abi],
>> + [Disable backward-compatibility ABI symbols)]),
> There's a stray ')' here.
Ugh, thanks
>> --- a/libstdc++-v3/doc/html/manual/configure.html
>> +++ b/libstdc++-v3/doc/html/manual/configure.html
> This should be in doc/xml/manual/configure.xml too, which is used to
> generate the HTML using docbook.
Oh, right. Doh. So much for grepping for an existing option and
jumping to edit the first match :-)
> The description here in the docs (and the name of the configure
> option) seem much too vague. Libstdc++ has dozens, probably hundreds,
> of "backward-compatibility ABI symbols", and this only affects touches
> a tiny handful of them. Just the aliases created automatically by the
> compiler for mangling changes, right?
Yeah.
I had used --disable-libstdcxx-Wabi at some point, maybe that's better.
FTR, we now have a binutils patch (thanks H.J.Lu) to address the
underlying problem, so we'll probably no longer need the workaround that
led me to propose this change. I wonder if there's interest in keeping
it. I'd be equally happy to make the adjustments, or to withdraw it (or
pretty much anything in between ;-). WDYT?
--
Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/
Free Software Activist GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity
Excluding neuro-others for not behaving ""normal"" is *not* inclusive
prev parent reply other threads:[~2024-04-18 14:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-16 3:36 Alexandre Oliva
2024-04-16 6:55 ` Jonathan Wakely
2024-04-18 14:45 ` Alexandre Oliva [this message]
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=orcyqmafw5.fsf@lxoliva.fsfla.org \
--to=oliva@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jwakely.gcc@gmail.com \
--cc=libstdc++@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: link
Be 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).