Nicolas COLLIN writes:
> In my version DECL_SAVED_TREE is defined as :
> #define DECL_SAVED_TREE(NODE)DECL_MEMFUNC_POINTER_TO (NODE)
> I just looked at DECL_MEMFUNC and it doesn't do what I want.
> Then I don't know how to get the statements in the FUNCTION_DECL I got.
You must be worki
Nicolas COLLIN writes:
> I want to go through the entire internal tree in GCC but I have a
> problem with functions.
> Indeed I would like to know the declarations and functions called by a
> function.
> I assume I have to go into the function's scope but I don't know how.
> I read the source cod
Nicolas COLLIN wrote:
> Hello again,
>
> I 'm still working on egcs 1.1 and the function cp_namespace_decls is
> not implemented in.
Well, the definition is very simple
tree
cp_namespace_decls (tree ns)
{
return NAMESPACE_LEVEL (ns)->names;
}
and NAMESPACE_LEVEL exists in egcs-1.1, so why n
Nicolas COLLIN wrote:
> In my source code I have some useful informations about variables (for
> example a variable which is a real time attribute) and I would like to
> know it in the intermediate representation to do what I have to about
> it. Is there a way to have some informations in the inte
Nicolas COLLIN writes:
> I read that there is a variable global_namespace, I searched for it
> but I didn't find anything. Would you know how I can get the root ?
global_namespace is specific to the C++ frontend. It is defined in
cp/name-lookup.c.
I'm not sure what you mean by "the root," but
Nicolas COLLIN wrote:
> Hello.
Hi again Nicolas,
> I have to create a file containing some informations by processing C++
> code source for work.
> But why create a whole lexical analyzer while I can use the intermediate
> representation tree of GCC ?
> To do it, I'm going to introduce a foncti
Nicolas COLLIN wrote:
> Hello,
> first of all excuse me for my english but I'm french so sometimes I make
> some mistakes (many ?).
> I wonder if the intermediate representation (tree) that you describe on
> this page (http://gcc.gnu.org/onlinedocs/gccint/Trees.html#Trees) was
> already implented i
Mateusz Berezecki wrote:
I'm new to GCC and I'd appreciate if somebody could point me to _all_
files which are responsible for intermediate representation and
constructing it.
See the internals documentation, for instance:
http://gcc.gnu.org/onlinedocs/gccint/Passes.html#Passes
We have two