------- Comment #9 from lopezibanez at gmail dot com  2010-07-04 08:33 -------
Subject: Re:  DECL_SAVED_TREE is always null on the first 
        FUNCTION_DECL and is not null on the others

On 4 July 2010 02:39, asmprog32 at hotmail dot com
<gcc-bugzi...@gcc.gnu.org> wrote:
> A file has 3 functions (with body), the AST generated report a body
> (DECL_SAVED_TREE != null ) on function 1, 2 not on function 3 (last one)
>
> If i add another function , the AST generated report a body on function 1 2 3
> not on function 4
>
> ............. and so on
>
> What i expect is that all functions must have the body (DECL_SAVED_TREE !=
> null). The code attached are examples to reproduce what i have explained.

I see. Reading the documentation on DECL_SAVED_TREE, that seems a fair
expectation. I don't know what is going on here. Perhaps your plugin
hooks too early or there is more going on that the docs explain.
Please, when you get the answer, post it here (or better, send a patch
updating the documentation!).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44800

Reply via email to