[Bug c++/44800] DECL_SAVED_TREE is always null on the first FUNCTION_DECL and is not null on the others
asmprog32 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jul 4 00:39:00 GMT 2010
------- Comment #7 from asmprog32 at hotmail dot com 2010-07-04 00:39 -------
(In reply to comment #6)
> Pietro,
>
> Please explain what is happening and what do you expect to happen, and why do
> you expect that. If you are having troubles about using gcc, please ask in
> gcc-help first.
>
Ok inserting a gcc callback into PLUGIN_OVERRIDE_GATE and analyzing the AST
systematicaly the last function in the file, has no body ( DECL_SAVED_TREE ==
null )
An example
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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44800
More information about the Gcc-bugs
mailing list