[google] AddressSanitizer for gcc, first attempt. (issue 5272048)

Xinliang David Li davidxl@google.com
Tue Nov 1 19:41:00 GMT 2011


On Tue, Nov 1, 2011 at 12:16 PM, Diego Novillo <dnovillo@google.com> wrote:
> On 11-11-01 15:11 , konstantin.s.serebryany@gmail.com wrote:
>>
>> Diego mentioned that we can move the asan pass somewhere to the very
>> end, just before lowering to RTL.
>> Where would be this blessed place?
>> Does it still have TARGET_MEM_REF?
>
> Right before pass_expand?  In init_optimization_passes(), look for NEXT_PASS
> (pass_expand).  That's RTL generation.  Somewhere before that.
>

Why?

> TARGET_MEM_REFs are converted to RTL mems during RTL expansion.
>

What? they will still be seen by asan which can not be handled (e.g,
creating address expression out of it).

David


>
> Diego.
>
>



More information about the Gcc-patches mailing list