This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tuples] meaning of DECL_SAVED_TREE while analyzing cgraph


On 7/31/07 6:10 PM, Jan Hubicka wrote:

> There are also few other occurences in cgraph.c and ipa-inline.  Those
> are used to test whether function body is present.  When you have body
> elsewhere now, you can check something else (such as
> DECL_STRUCT_FUNCTION(cfun)->cfg)

Currently, in tuples, the presence of the GIMPLE function body is given
by gimple_body(fndecl).  After the CFG has been built, then
D_S_F(cfun)->cfg will be non-NULL.

We should abstract these two tests into a single predicate.  Also,
testing for the CFG of a function should be something like cfg (fndecl)
or something along those lines.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]