PATCH: set_current_function hook, version N+1

Mark Mitchell
Tue Sep 4 17:54:00 GMT 2007

Sandra Loosemore wrote:
> Here's a new version of the patch I posted earlier this week (see
> ) 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.)


Mark Mitchell
(650) 331-3385 x713

More information about the Gcc-patches mailing list