This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH C++] Fix PR77489 -- mangling of discriminator >= 10
- From: Jason Merrill <jason at redhat dot com>
- To: Markus Trippelsdorf <markus at trippelsdorf dot de>
- Cc: Jakub Jelinek <jakub at redhat dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 18 Jan 2017 09:11:54 -0500
- Subject: Re: [PATCH C++] Fix PR77489 -- mangling of discriminator >= 10
- Authentication-results: sourceware.org; auth=none
- References: <20170111114829.GA288@x4> <20170111120330.GM21933@tucnak> <20170112073634.GA301@x4> <CADzB+2=FAJYrQBmgME+VHXn4Fh6GXTyitrf0ekTTLTBHiLV2_A@mail.gmail.com> <20170118085516.GA6668@x4>
On Wed, Jan 18, 2017 at 3:55 AM, Markus Trippelsdorf
<markus@trippelsdorf.de> wrote:
> On 2017.01.17 at 13:26 -0500, Jason Merrill wrote:
>> On Thu, Jan 12, 2017 at 2:36 AM, Markus Trippelsdorf
>> <markus@trippelsdorf.de> wrote:
> + if (abi_version_at_least (11) && discriminator - 1 >= 10)
> + {
> + write_char ('_');
> + if (abi_warn_or_compat_version_crosses (11))
> + G.need_abi_warning = 1;
This check should be outside the abi_version_at_least block; we want
to warn if -fabi-version=10 and -Wabi=11.
Jason