This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]