public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Cc: Boris Kolpackov <boris@codesynthesis.com>,
	Marc Glisse <marc.glisse@inria.fr>
Subject: Re: GCC 12.1 Release Candidate available from gcc.gnu.org
Date: Mon, 2 May 2022 16:42:24 +0100	[thread overview]
Message-ID: <CAH6eHdQXrLUxoEsHY1oMHi9wsVhaQr5pAh_mj-+m4=o8-goTDg@mail.gmail.com> (raw)
In-Reply-To: <6b76a0f7-df1d-934-b77c-6b89f11a6594@hippo.saclay.inria.fr>

On Mon, 2 May 2022, 13:26 Marc Glisse via Gcc, <gcc@gcc.gnu.org> wrote:

> On Mon, 2 May 2022, Boris Kolpackov wrote:
>
> > Jakub Jelinek <jakub@redhat.com> writes:
> >
> >> The first release candidate for GCC 12.1 is available [...]
> >
> > There is an unfixed bogus warning that is a regression in 12
> > and that I think will have a pretty wide effect (any code
> > that assigns/appends a 1-char string literal to std::string):
> >
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329
> >
> > For example, in my relatively small codebase I had about 20
> > instances of this warning. Seeing that it's enabled as part
> > of -Wall (not just -Wextra), I believe there will be a lot
> > of grumpy users.
> >
> > There is a proposed work around in this (duplicate) bug that
> > looks pretty simple:
> >
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104336
> >
> > Perhaps it makes sense to consider it?
>
> Please no, that workaround looks like a fragile hack (basically writing
> a+b-a to obfuscate b) that may break if you look at it sideways and likely
> makes the generated code a bit worse.


Agreed. And it makes the variable names completely misleading (although
that would be easy to fix).

      reply	other threads:[~2022-05-02 15:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-29 14:34 Jakub Jelinek
2022-05-01 10:02 ` Iain Sandoe
2022-05-01 11:41   ` Jakub Jelinek
2022-05-01 15:38     ` Richard Biener
2022-05-01 18:06       ` Jonathan Wakely
2022-05-02 11:49 ` Boris Kolpackov
2022-05-02 12:26   ` Marc Glisse
2022-05-02 15:42     ` Jonathan Wakely [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='CAH6eHdQXrLUxoEsHY1oMHi9wsVhaQr5pAh_mj-+m4=o8-goTDg@mail.gmail.com' \
    --to=jwakely.gcc@gmail.com \
    --cc=boris@codesynthesis.com \
    --cc=gcc@gcc.gnu.org \
    --cc=marc.glisse@inria.fr \
    /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).