Re: plugin help: Inserting a function call in gimple code?

2008-01-03 Thread Rob Johnson
Martin Jambor wrote: Hi, On Wed, Jan 02, 2008 at 06:13:37PM -0500, Rob Johnson wrote: I'm experimenting with the gimple plugin infrastructure and I'm having trouble instrumenting code in a way that is compatible with the optimizer. Here's a simple example that is intende

plugin help: Inserting a function call in gimple code?

2008-01-02 Thread Rob Johnson
I'm experimenting with the gimple plugin infrastructure and I'm having trouble instrumenting code in a way that is compatible with the optimizer. Here's a simple example that is intended to insert the function call "__memcheck_register_argv(argc, argv)" at the beginning of main. The code runs