re PR sanitizer/81715 (asan-stack=1 redzone allocation is too inflexible)
authorJakub Jelinek <jakub@redhat.com>
Thu, 18 Jan 2018 20:30:33 +0000 (21:30 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 18 Jan 2018 20:30:33 +0000 (21:30 +0100)
commit6aee2fd0648140a7308123c1368e772cf58738ff
treed3b25d4d5a26001425b9b68638df47855a0c1354
parentd3a9902e523f81f07e765b2553dde7019aa098fb
re PR sanitizer/81715 (asan-stack=1 redzone allocation is too inflexible)

PR sanitizer/81715
PR testsuite/83882
* function.h (gimplify_parameters): Add gimple_seq * argument.
* function.c: Include gimple.h and options.h.
(gimplify_parameters): Add cleanup argument, add CLOBBER stmts
for the added local temporaries if needed.
* gimplify.c (gimplify_body): Adjust gimplify_parameters caller,
if there are any parameter cleanups, wrap whole body into a
try/finally with the cleanups.

From-SVN: r256861
gcc/ChangeLog
gcc/function.c
gcc/function.h
gcc/gimplify.c