GCC Plugins - CC1 - Multiple processes on PLUGIN_FINISH_TYPE

2012-04-24 Thread Brett Foster
Hi all, I've been working on a plugin that processes some data. My plugin grabs some data from the tree. I'm trying to understand a certain "weird" behaviour I am seeing. And yeah, I'm new to the mailing list and gcc's innards! Be forgiving! :) I appreciate the help! When I add: register

Re: GCC Plugins - CC1 - Multiple processes on PLUGIN_FINISH_TYPE

2012-04-25 Thread Brett Foster
Ah! I see what might be happening. I was using assert(0) in the callback to stop the program's execution (to examine the output at that location). When I do this, I get the funky results. (I was surprised it was seen as HTML seeing as it was sent from my blackberry (no html e-mail editing). The co

Traversing trees in a plugin...

2012-06-02 Thread Brett Foster
Hi all, I'm working on a GCC plugin, having made a lot of progress on that front. So far running my plugin works 'more or less' on things like the linux kernel. On the other hand running it on the plugin itself causes problems. Given that some of the data structures are pretty complicated in GCC I

Re: Traversing trees in a plugin...

2012-06-02 Thread Brett Foster
On Sat, Jun 2, 2012 at 11:31 AM, Basile Starynkevitch wrote: > In the MELT meta-plugin (recall that MELT is a high-level domain specific > language to > extend GCC, see http://gcc-melt.org/ for more) we extensively use associative > hash-tables > for that. MELT offers homogeneous hash-tables, e.