Re: problem with getting statements (DECL_SAVED_TREE?)

2009-05-24 Thread Brad Hards
On Sunday 24 May 2009 10:03:36 pm Richard Guenther wrote: > On Sun, May 24, 2009 at 1:38 PM, Brad Hards wrote: > > Essentially, the problem appears to be that DECL_SAVED_TREE() returns > > null. If I understand the treehydra code, that used to provide a list of > > GENERIC i

problem with getting statements (DECL_SAVED_TREE?)

2009-05-24 Thread Brad Hards
Hi, I'm trying to help with the porting of dehydra / treehydra to gcc 4.5. There are some tests that are failing, and in working through them, I'm finding some issues that might be differences between 4.3 and 4.5. One problem is about walking the instructions associated with a function. The tr

Re: add new optimization pass to the GCC optimizations

2009-05-10 Thread Brad Hards
On Sunday 10 May 2009 09:38:58 pm charfi asma wrote: > Hello, > > Can we add our own SSA optimizations passes to GCC? Yes. > is there a plugin or API that can help doing this ? (since GCC is open > source) to run this optimization, can we easialy add it to other > optimizations performed by chosin

Re: Finding gcc plugin headers

2009-05-09 Thread Brad Hards
On Sunday 10 May 2009 01:37:32 am Dave Korn wrote: > I noticed one bit that looked like a typo: > > # we don't have this path - it needs some suffix > > ITYM 'prefix' here, no? Indeed. Thanks again. Brad

Re: Finding gcc plugin headers

2009-05-09 Thread Brad Hards
On Friday 08 May 2009 10:37:27 pm Dave Korn wrote: > Instead of pkg-config, the tradition for GCC is to use one of the > driver's default switches. Does > > gcc -print-file-name=plugin/include/.h > > work for you? For those who'd like to use this with cmake, I wrote up the results of my work in

Re: Finding gcc plugin headers

2009-05-08 Thread Brad Hards
On Friday 08 May 2009 10:37:27 pm Dave Korn wrote: > Instead of pkg-config, the tradition for GCC is to use one of the > driver's default switches. Does > > gcc -print-file-name=plugin/include/.h > > work for you? $ /opt/gccsvn/bin/gcc -print-file-name=plugin/include/gcc-plugin.h /opt/gccsvn/bin

Finding gcc plugin headers

2009-05-08 Thread Brad Hards
Hi, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40004 was a bug report that I filed on the missing plugin headers. That is now resolved - the headers are installed. I've closed the bug report. However I'm not sure how my application / buildsystem is meant to find the headers. Is there a way gc

questions about plugin API

2009-04-26 Thread Brad Hards
G'day, I noted the merge of (most of) the plugins branch, and managed to build trunk. I'm interested in using the plugins API to provide checking of features specific to some library functions (e.g. where functions need to be called in a certain order - analogous to the malloc() / use() / free(