A Framework for GCC Plug-ins

2010-10-28 Thread Justin Seyster
One of my research projects for the past few months has been a framework for writing GCC instrumentation plug-ins called InterAspect. I am releasing the project today, and since there is a general interest in plug-ins on this list, I wanted to send a quick announcement with a pointer to the web

Plug-in Licensing

2010-10-19 Thread Justin Seyster
I'm getting ready to release plug-in code, and I want to have a very clear idea about licensing before I release. I'm leaning towards releasing everything as GPLv3, but I do want to know exactly what is and isn't allowed. I know this issue was debated quite intensely before plug-in support got

Re: Plug-in Licensing

2010-10-19 Thread Justin Seyster
when releasing a stand-alone GCC plug-in. It sounds like the GPLv3 will do that for me, so that's my plan unless somebody corrects me. --Justin On Tue, Oct 19, 2010 at 4:49 PM, Ian Lance Taylor i...@google.com wrote: Justin Seyster jrs...@gmail.com writes: I'm getting ready to release

Re: tree check: expected SSA_NAME, have var_decl

2009-12-28 Thread Justin Seyster
You can assign the a TREE_NODE to a temporary variable and call make_ssa_name on the temp, allowing you to use it as an argument to a GIMPLE_CALL. Here is the function I use for that purpose: /* Create a GIMPLE statement assigning a reference to a temporary variable, add that statement at the

Alias analysis or DSE problem?

2009-10-16 Thread Justin Seyster
I'm currently porting a plug-in that used to target the 4.3.0-based plug-in branch to the new top-of-tree plug-in system. I'm really stymied by a bug whose source I just cannot track down! Usually that means there is an error in my code, but the problem seems to involve tree-ssa-dse.c and

Re: [plugins] Name for pass_all_optimizations

2009-05-12 Thread Justin Seyster
wrote: On Thu, Apr 23, 2009 at 22:58, Justin Seyster jrs...@gmail.com wrote:    Unless that's not a good place to put plug-in passes, I propose giving the pass_all_optimizations pass the name all_optimizations. I believe that there are a handful of other unnamed passes that might also be useful

Re: Plugins GGC ie GTY

2009-05-04 Thread Justin Seyster
Sorry for dragging this discussion out from the distant past. I'm in the process of porting some plug-ins from the old plugin SVN branch to the new plug-in system, and this is one of the issues blocking me. My plug-ins maintain some tree nodes that I want to stay alive from function to function.

[plugins] Name for pass_all_optimizations

2009-04-23 Thread Justin Seyster
I'm working on porting a plug-in designed for the old branches/plugin branch to the (recently merged) shiny new branches/plugins branch. One thing that's turning out to be tricky is placing the plug-in transform in exactly the same place. In the old branch, plug-ins hook in just before the