Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST (PR sanitizer/80879).
authorMartin Liska <mliska@suse.cz>
Mon, 19 Jun 2017 13:27:48 +0000 (15:27 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 19 Jun 2017 13:27:48 +0000 (13:27 +0000)
commita6e5212a77e34682cfb591ed80e7166eaa895365
tree306ee35916c9118ad658594b931d61933751b679
parent1a1e0df1cd646b81e35dd65523c3ae484d29fbf6
Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST (PR sanitizer/80879).

2017-06-19  Martin Liska  <mliska@suse.cz>

PR sanitizer/80879
* gimplify.c (gimplify_switch_expr):
Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
2017-06-19  Martin Liska  <mliska@suse.cz>

PR sanitizer/80879
* gcc.dg/asan/use-after-scope-switch-4.c: New test.

From-SVN: r249368
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/use-after-scope-switch-4.c [new file with mode: 0644]