On Sun, May 24, 2009 at 2:29 PM, Brad Hards <br...@frogmouth.net> wrote: > On Sunday 24 May 2009 10:03:36 pm Richard Guenther wrote: >> On Sun, May 24, 2009 at 1:38 PM, Brad Hards <br...@frogmouth.net> 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 instructions. Is there a way to get that in 4.5? >> >> It depends on when you hook into the gcc pipeline. DECL_SAVED_TREE will >> only be available before gimplification (gimplification doesn't run as part >> of a pass, it is currently invoked by the frontends). > I'm pretty flexible about where we hook in - the current default is > after "useless". > > If the output of the front ends is GIMPLE, then I guess I need to work in > terms of GIMPLE statements?
The frontend still outputs GENERIC, but at useless you have unlowered gimple already (also known as 'tuples' these days). This was true before, just that gimple was a subset of GENERIC, even from a data-structure point of view. The GIMPLE of today is accessible via gimple_body (). Richard. > Brad > > >