public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: "Martin Liška" <mliska@suse.cz>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST (PR sanitizer/80879).
Date: Mon, 19 Jun 2017 13:23:00 -0000	[thread overview]
Message-ID: <20170619132331.GO2123@tucnak> (raw)
In-Reply-To: <08849f53-06b3-ab85-d524-7d291d9ab509@suse.cz>

On Fri, May 26, 2017 at 01:05:28PM +0200, Martin Liška wrote:
> Hello.
> 
> Unfortunately I guarded use-after-scope to track live switch variables just
> to BIND_EXPR. However the bind expression can be included in a STATEMENT_LIST.
> That enables proper tracking and fixes the test added.
> 
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
> 
> Ready to be installed?
> Martin

> >From a7f63e228118b3f256d9e774fdeeb8c85c0da437 Mon Sep 17 00:00:00 2001
> From: marxin <mliska@suse.cz>
> Date: Thu, 25 May 2017 17:53:06 +0200
> Subject: [PATCH] Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST
>  (PR sanitizer/80879).
> 
> gcc/ChangeLog:
> 
> 2017-05-25  Martin Liska  <mliska@suse.cz>
> 
> 	* gimplify.c (gimplify_switch_expr):
> 	Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
> 
> gcc/testsuite/ChangeLog:
> 
> 2017-05-25  Martin Liska  <mliska@suse.cz>
> 
> 	* gcc.dg/asan/use-after-scope-switch-4.c: New test.

Ok, thanks.

	Jakub

      parent reply	other threads:[~2017-06-19 13:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-26 11:14 Martin Liška
2017-06-06  6:58 ` Martin Liška
2017-06-19 10:23   ` Martin Liška
2017-06-19 13:23 ` Jakub Jelinek [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=20170619132331.GO2123@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mliska@suse.cz \
    /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).