ASAN: clear DECL_NOT_GIMPLE_REG_P.
authorMartin Liska <mliska@suse.cz>
Tue, 12 May 2020 08:23:09 +0000 (10:23 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 12 May 2020 08:23:09 +0000 (10:23 +0200)
commit6b41920bd5c68998a53de749b4fe5c0b8875db6c
tree3c6f8e229818dbe1a6860972f0c0d0a9e02ad9f6
parent99b0c9ec47d563d1f780cb678c04d37c9835440f
ASAN: clear DECL_NOT_GIMPLE_REG_P.

PR sanitizer/95033
PR sanitizer/95051
* sanopt.c (sanitize_rewrite_addressable_params):
Clear DECL_NOT_GIMPLE_REG_P for argument.
PR sanitizer/95033
PR sanitizer/95051
* g++.dg/asan/function-argument-4.C: New test.
* gcc.dg/asan/pr95033.c: New test.
* gcc.dg/asan/pr95051.c: New test.
gcc/ChangeLog
gcc/sanopt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/function-argument-4.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/pr95033.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/pr95051.c [new file with mode: 0644]