Fix PR sanitizer/78270 (part 2) 84/189284/2
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Nov 2016 11:56:58 +0000 (11:56 +0000)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Thu, 18 Oct 2018 13:20:10 +0000 (16:20 +0300)
commit037f5c0adf25b4487ca4c0621f26fb6171b40f07
treef310d650281fb3a3777b4de727bc818b5dc90e0f
parent22b1fc78b9839b0cc408a55bec2a603253579819
Fix PR sanitizer/78270 (part 2)

PR sanitizer/78270
* gimplify.c (gimplify_switch_expr): Always save previous
gimplify_ctxp->live_switch_vars.
PR sanitizer/78270
* gcc.dg/asan/pr78270.c: Update comment style.
* gcc.dg/asan/pr78270-2.c: New test.

upstream hash: 904e262bdb88c2cf1eefeb4997c8d4ed2a888d55
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242485 138bc75d-0d04-0410-961f-82ee72b054a4

Change-Id: I760170bff746390269035dd2c10afff960d06445
gcc/gimplify.c
gcc/testsuite/gcc.dg/asan/pr78270-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/pr78270.c