Nicolas COLLIN <nicolas.col...@fr.thalesgroup.com> 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 code but I didn't find anything.
As what point in the compilation process do you want to do that? After the conversion to GIMPLE, and assuming you have the function decl, you just walk through the GIMPLE code looking for GIMPLE_CALLs. To see the declarations look at the GIMPLE_BINDs. Ian