[PATCH] Enable -fsanitize-recover for KASan

Yury Gribov y.gribov@samsung.com
Fri Sep 5 08:12:00 GMT 2014

On 09/05/2014 11:32 AM, Dmitry Vyukov wrote:
> Can we do it w/o doubling number of runtime entry points?

I didn't find a good way to achieve this. See, normal asan reporting 
have a noreturn attribute (defined in sanitizer.def) which can't be changed
depending on cmdline flag.

> Looks like a wrong way to pass global options to runtime.
> If we need
> to pass several other options, number of entry points will sky rocket.

We only need new definitions if functions look significantly different 
for compiler
(noreturn, etc.).

> I vaguely remember there are some globals that compiler uses to
> communicate configuration (version, shadow base) to runtime.

This would make the recovery setting global then.
It may be desirable to have per-object (or even per-function) options 
(or maybe not).


More information about the Gcc-patches mailing list