This is the mail archive of the gcc@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: Making a variable addressable in GIMPLE



The pointer variable's address is used as the pointer's unique ID in a database, collecting information about each pointer variable - mostly its legal bounds. That way I can test when a pointer crosses its object's bounds.
Terrible overhead, I know. Just need it to collect statistics about program (or programmer) behavior.


Yoav

Frank Ch. Eigler wrote:
Yoav Etsion <etsman@gmail.com> writes:


The transformation is simple: mudflap already injects a call to
__mf_register when an addressable variable is declared. I want to do
the same for all pointer variables [...]


Why?  If those pointers are not themselves taken address of, what kind
access to the pointer value is worth checking?


- FChE




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