This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problem with getting statements (DECL_SAVED_TREE?)
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Brad Hards <bradh at frogmouth dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 24 May 2009 14:03:36 +0200
- Subject: Re: problem with getting statements (DECL_SAVED_TREE?)
- References: <200905242138.15722.bradh@frogmouth.net>
On Sun, May 24, 2009 at 1:38 PM, Brad Hards <bradh@frogmouth.net> wrote:
> 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
> treehydra code is a bit convoluted, so I've converted it into a testsuite
> case. See attached.
>
> 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).
Richard.
> Brad
>
>