Create live_switch_vars conditionally (PR sanitizer/78270)
authorMartin Liska <mliska@suse.cz>
Thu, 10 Nov 2016 11:21:03 +0000 (12:21 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 10 Nov 2016 11:21:03 +0000 (11:21 +0000)
commit86bc85065359e0f849a12115ee487d6a408a2fe0
tree0faecaf07602821af5795a732245a4732a1147c4
parented5fdfba23ed1d25a07c0fbcccb8aaea138a5d88
Create live_switch_vars conditionally (PR sanitizer/78270)

PR sanitizer/78270
* gcc.dg/asan/pr78270.c: New test.
PR sanitizer/78270
* gimplify.c (gimplify_switch_expr): Create live_switch_vars
only when SWITCH_BODY is a BIND_EXPR.

From-SVN: r242036
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr78270.c [new file with mode: 0644]