re PR sanitizer/81715 (asan-stack=1 redzone allocation is too inflexible)
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Sep 2017 12:26:34 +0000 (14:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Sep 2017 12:26:34 +0000 (14:26 +0200)
commit765b3379354e3018b5440693625f8aace232f44a
treee299dda2a3c3c6838ec7d26db09180193bb65a36
parentc94f2d84e51b39f4f90c3cb3bf3c0d056080bc57
re PR sanitizer/81715 (asan-stack=1 redzone allocation is too inflexible)

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.  Clear
id->retval and id->retbnd after inlining.

* g++.dg/tree-ssa/pr8781.C (noop): Change argument type from
const predicate to const predicate & to avoid UB.
* g++.dg/opt/pr81715.C: New test.

From-SVN: r253065
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr81715.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tree-ssa/pr8781.C
gcc/tree-inline.c