https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715
--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Oct 27 20:33:35 2017 New Revision: 254179 URL: https://gcc.gnu.org/viewcvs?rev=254179&root=gcc&view=rev Log: Backported from mainline 2017-09-21 Jakub Jelinek <ja...@redhat.com> PR sanitizer/81715 * tree-inline.c (expand_call_inline): Emit clobber stmts for VAR_DECLs to which addressable non-volatile parameters are mapped and for id->retvar after the return value assignment, though for -fsanitize=kernel-address only. Clear id->retval and id->retbnd after inlining. * g++.dg/asan/pr81715.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/asan/pr81715.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/tree-inline.c