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 tree-optimization/97595] [11 Regression] bogus -Wstringop-overflow due to DECL_SIZE_UNIT underreporting field size
Date: Tue, 01 Dec 2020 22:11:55 +0000	[thread overview]
Message-ID: <bug-97595-4-kSnQrpr8RZ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-97595-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:

https://gcc.gnu.org/g:b76f83e3859f738809d3aa8bd9dc14e10fc40e24

commit r11-5628-gb76f83e3859f738809d3aa8bd9dc14e10fc40e24
Author: Martin Sebor <msebor@redhat.com>
Date:   Tue Dec 1 15:10:30 2020 -0700

    PR middle-end/97595 - bogus -Wstringop-overflow due to DECL_SIZE_UNIT
underreporting field size

    gcc/ChangeLog:

            PR middle-end/97595
            * tree.c (component_ref_size): Fail when DECL_SIZE != TYPE_SIZE.
            * tree.h (DECL_SIZE, TYPE_SIZE): Update comment.

    gcc/testsuite/ChangeLog:

            PR middle-end/97595
            * g++.dg/warn/Warray-bounds-14.C: New test.
            * g++.dg/warn/Wstringop-overflow-6.C: New test.

  parent reply	other threads:[~2020-12-01 22:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-27 15:22 [Bug tree-optimization/97595] New: [11 Regression] warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] redi at gcc dot gnu.org
2020-10-27 15:22 ` [Bug tree-optimization/97595] " redi at gcc dot gnu.org
2020-10-27 15:27 ` redi at gcc dot gnu.org
2020-10-27 16:28 ` [Bug tree-optimization/97595] [11 Regression] bogus -Wstringop-overflow due to DECL_SIZE_UNIT underreporting field size msebor at gcc dot gnu.org
2020-10-28  9:09 ` rguenth at gcc dot gnu.org
2020-11-14 22:19 ` msebor at gcc dot gnu.org
2020-11-16 17:10 ` jason at gcc dot gnu.org
2020-12-01 16:16 ` msebor at gcc dot gnu.org
2020-12-01 22:11 ` cvs-commit at gcc dot gnu.org [this message]
2020-12-01 22:13 ` msebor at gcc dot gnu.org
2021-02-23 23:12 ` msebor 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-97595-4-kSnQrpr8RZ@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).