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 middle-end/99989] [11 regression] -Wmaybe-uninitialized warning breaks bootstrap on riscv64
Date: Sat, 10 Apr 2021 10:48:32 +0000	[thread overview]
Message-ID: <bug-99989-4-oodQa4TLW6@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99989-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99989

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:3e350d8539a4e28ddc30d0f08a4040f10b699135

commit r11-8107-g3e350d8539a4e28ddc30d0f08a4040f10b699135
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sat Apr 10 12:48:04 2021 +0200

    gimple-ssa-warn-alloca: Always initialize limit [PR99989]

    This PR is about a -W*uninitialized warning on riscv64.
    alloca_type_and_limit is documented to have limit member only defined
    when type is ALLOCA_BOUND_MAYBE_LARGE or ALLOCA_BOUND_DEFINITELY_LARGE
    and otherwise just default constructs limit, which for wide_int means
    no initialization at all.  IMHO it is fine not to use the limit
    member otherwise, but trying to not initialize it when it can be e.g.
    copied around and then invoke UB doesn't look like a good idea.

    2021-04-10  Jakub Jelinek  <jakub@redhat.com>

            PR middle-end/99989
            * gimple-ssa-warn-alloca.c
            (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
            0 with integer precision unconditionally.

  parent reply	other threads:[~2021-04-10 10:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09 10:16 [Bug middle-end/99989] New: [11 regression] False maybe-uninitialized " schwab@linux-m68k.org
2021-04-09 10:17 ` [Bug middle-end/99989] " schwab@linux-m68k.org
2021-04-09 10:36 ` jakub at gcc dot gnu.org
2021-04-09 10:40 ` rguenth at gcc dot gnu.org
2021-04-09 10:47 ` rsandifo at gcc dot gnu.org
2021-04-09 10:48 ` jakub at gcc dot gnu.org
2021-04-09 10:57 ` rguenth at gcc dot gnu.org
2021-04-09 15:57 ` msebor at gcc dot gnu.org
2021-04-09 17:50 ` [Bug middle-end/99989] [11 regression] -Wmaybe-uninitialized " msebor at gcc dot gnu.org
2021-04-10 10:48 ` cvs-commit at gcc dot gnu.org [this message]
2021-04-10 10:50 ` jakub at gcc dot gnu.org
2021-04-10 11:07 ` schwab@linux-m68k.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-99989-4-oodQa4TLW6@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: 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).