From: Martin Sebor <msebor@gmail.com>
To: Gcc Patch List <gcc-patches@gcc.gnu.org>
Subject: [PING] [PATCH] c/67882 - improve -Warray-bounds for invalid offsetof
Date: Thu, 15 Oct 2015 21:59:00 -0000 [thread overview]
Message-ID: <562021BA.80205@gmail.com> (raw)
In-Reply-To: <56172C8C.2070202@gmail.com>
The patch is at the following link:
https://gcc.gnu.org/ml/gcc-patches/2015-10/msg00915.html
Martin
On 10/08/2015 08:55 PM, Martin Sebor wrote:
> Gcc attempts to diagnose invalid offsetof expressions whose member
> designator is an array element with an out-of-bounds index. The
> logic in the function that does this detection is incomplete, leading
> to false negatives. Since the result of the expression in these cases
> can be surprising, this patch tightens up the logic to diagnose more
> such cases.
>
> Tested by boostrapping and running c/c++ tests on x86_64 with no
> regressions.
>
> Martin
next prev parent reply other threads:[~2015-10-15 21:59 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-09 2:55 Martin Sebor
2015-10-15 21:59 ` Martin Sebor [this message]
2015-10-16 12:28 ` Bernd Schmidt
2015-10-16 17:27 ` Joseph Myers
2015-10-16 19:34 ` Martin Sebor
2015-10-20 13:21 ` Bernd Schmidt
2015-10-20 15:33 ` Martin Sebor
2015-10-20 15:52 ` Bernd Schmidt
2015-10-20 16:57 ` Martin Sebor
2015-10-20 17:11 ` Joseph Myers
2015-10-20 19:10 ` Martin Sebor
2015-10-20 16:54 ` Joseph Myers
2015-10-20 20:36 ` Bernd Schmidt
2015-10-20 22:19 ` Joseph Myers
2015-10-23 11:17 ` Bernd Schmidt
2015-10-23 15:15 ` Martin Sebor
2015-10-23 16:53 ` Joseph Myers
2015-10-23 17:45 ` Bernd Schmidt
2015-10-23 20:54 ` Martin Sebor
2015-10-26 11:44 ` Bernd Schmidt
2015-10-26 11:51 ` Jakub Jelinek
2015-10-26 12:01 ` Bernd Schmidt
2015-10-26 12:04 ` Jakub Jelinek
2015-10-26 12:32 ` Richard Biener
2015-10-27 11:18 ` Bernd Schmidt
2015-11-03 19:15 ` Martin Sebor
2015-11-07 23:38 ` Segher Boessenkool
2015-11-09 22:46 ` Martin Sebor
2015-11-10 0:02 ` Joseph Myers
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=562021BA.80205@gmail.com \
--to=msebor@gmail.com \
--cc=gcc-patches@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).