Sanopt: ignore params with DECL_HAS_VALUE_EXPR_P (PR sanitizer/86962).
authorMartin Liska <mliska@suse.cz>
Mon, 27 Aug 2018 13:21:28 +0000 (15:21 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 27 Aug 2018 13:21:28 +0000 (13:21 +0000)
commit47c3496bf898e9dfe12799ef6e31ae9b9211c63d
treea380f3ec58ab3725fe955cde6665f72ac5fa7692
parent6b60ee204f80649803dc78c24ab9c94ff8f51789
Sanopt: ignore params with DECL_HAS_VALUE_EXPR_P (PR sanitizer/86962).

2018-08-27  Martin Liska  <mliska@suse.cz>

        PR sanitizer/86962
* sanopt.c (sanitize_rewrite_addressable_params): Ignore
        params with DECL_HAS_VALUE_EXPR_P.
2018-08-27  Martin Liska  <mliska@suse.cz>

        PR sanitizer/86962
* gcc.dg/asan/pr86962.c: New test.

From-SVN: r263882
gcc/ChangeLog
gcc/sanopt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr86962.c [new file with mode: 0644]