[PATCH] Move static chain and non-local goto init after NOTE_INSN_FUNCTION_BEG (PR sanitize/81186).
Michael Matz
matz@suse.de
Fri Jul 14 13:42:00 GMT 2017
Hi,
On Thu, 13 Jul 2017, Martin Liška wrote:
> Hopefully following patch will fix that. I returned to the first version
> and saved/restored static_chain register before/after
> __asan_stack_malloc.
It should also work if you emit the parm_birth_note after the static chain
is set up (not before it), but before you store into the
nonlocal_goto_save_area. With that you don't need to worry about
clobbering the incoming static chain with the asan setup.
Can you test that? It would better reflect the intent of this note (the
static chain being an implicit parameter, but the nonlocal_goto_save_area
setup not being such).
Ciao,
Michael.
More information about the Gcc-patches
mailing list