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)



http://codereview.appspot.com/5272048/diff/2001/tree-asan.c File tree-asan.c (right):

http://codereview.appspot.com/5272048/diff/2001/tree-asan.c#newcode79
tree-asan.c:79: (All I need is to traverse *all* memory accesses and
instrument them).
Discard 2) -- it is not correct.  What Asan needs is slightly different.

David

On 2011/10/17 22:26:55, davidxl wrote:
Two suggestions:
1) You only need to deal with GIMPLE_ASSIGN (lhs and rhs) for all
memory
references)
2) use get_base_address function to compute base address.

http://codereview.appspot.com/5272048/



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