Set DECL_VALUE_EXPR after a debug stmt is generated (PR sanitizer/81340).
authorMartin Liska <mliska@suse.cz>
Fri, 28 Jul 2017 11:56:47 +0000 (13:56 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 28 Jul 2017 11:56:47 +0000 (11:56 +0000)
commit6d7649f8b71f9a16b5e9de0b3f8826c5039fa069
tree813973611a321535c3cd8332ad2c600149d0820b
parent92e29a5e86c8adc88ee17a483d7284d7bb9e090c
Set DECL_VALUE_EXPR after a debug stmt is generated (PR sanitizer/81340).

2017-07-28  Martin Liska  <mliska@suse.cz>

PR sanitizer/81340
* sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after
gimple_build_debug_bind.
2017-07-28  Martin Liska  <mliska@suse.cz>

PR sanitizer/81340
* g++.dg/asan/pr81340.C: New test.

From-SVN: r250660
gcc/ChangeLog
gcc/sanopt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/pr81340.C [new file with mode: 0644]