[PATCH] Sanopt: ignore params with DECL_HAS_VALUE_EXPR_P (PR sanitizer/86962).
Martin Liška
mliska@suse.cz
Mon Aug 27 13:00:00 GMT 2018
Hello.
In case of nested functions it may happen that we end up
with a PARAM_DECL with DECL_HAS_VALUE_EXPR_P. If would
skip these.
Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
Ready to be installed?
Martin
gcc/ChangeLog:
2018-08-16 Martin Liska <mliska@suse.cz>
PR sanitizer/86962
* sanopt.c (sanitize_rewrite_addressable_params): Ignore
params with DECL_HAS_VALUE_EXPR_P.
gcc/testsuite/ChangeLog:
2018-08-16 Martin Liska <mliska@suse.cz>
PR sanitizer/86962
* gcc.dg/asan/pr86962.c: New test.
---
gcc/sanopt.c | 6 ++++--
gcc/testsuite/gcc.dg/asan/pr86962.c | 13 +++++++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
create mode 100644 gcc/testsuite/gcc.dg/asan/pr86962.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Sanopt-ignore-params-with-DECL_HAS_VALUE_EXPR_P-PR-s.patch
Type: text/x-patch
Size: 1036 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180827/df1db970/attachment.bin>
More information about the Gcc-patches
mailing list