On 06/13/2017 02:09 AM, Martin Liška wrote:
> Hi.
>
> For a function that does not handle an expection (and calls
> BUILT_IN_UNWIND_RESUME),
> we need to emit call to BUILT_IN_ASAN_HANDLE_NO_RETURN. That will clean up
> stack
> which can possibly contain poisoned shadow memory that will not be cleaned-up
> in function prologue.
>
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
>
> Ready to be installed?
> Martin
>
> gcc/testsuite/ChangeLog:
>
> 2017-06-12 Martin Liska <mli...@suse.cz>
>
> PR sanitizer/81021
> * g++.dg/asan/pr81021.C: New test.
>
> gcc/ChangeLog:
>
> 2017-06-12 Martin Liska <mli...@suse.cz>
>
> PR sanitizer/81021
> * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
> before BUILT_IN_UNWIND_RESUME when ASAN is used.
OK.
Jeff