This is the mail archive of the gcc-patches@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: PATCH: set_current_function hook, version N+1


Sandra Loosemore wrote:
> Here's a new version of the patch I posted earlier this week (see
> http://gcc.gnu.org/ml/gcc-patches/2007-08/msg01875.html ) to add a
> target hook invoked when cfun is set.

I think this looks very good.  I like that we're using {push,pop}_cfun
in more places now.  Since nobody has objected, this patch is OK.

(Hopefully, in the future, more of the remainder can be converted to
stack discipline too.  Or, to gcc_assert (cfun == NULL).  For example,
it seems reasonable for the IPA passes to just assert that cfun is NULL
on entry, rather than setting it to NULL; if it's non-NULL on entry,
someone has forgotten to pop it.)

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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