[ColdFire 53/63] Static chain fixes

Jeffrey Law law@redhat.com
Thu Jan 11 17:17:00 GMT 2007


On Wed, 2007-01-10 at 17:09 -0500, Daniel Jacobowitz wrote:
> On Wed, Jan 10, 2007 at 03:05:37PM -0700, Jeffrey Law wrote:
> > Why must they be local.
> > 
> > Take the address of a nested function and pass it as an argument to a
> > function outside the current translation unit.  IIRC the only 
> > restriction we've made on calling nested functions is that the
> > container function must still be on the dynamic call stack.
> 
> But the function that took the address is responsible for creating the
> trampoline which sets up the static chain register, isn't it?  We don't
> pass the static chain out to anything else.
I think you're right for the m68k.  So consider my concerns a non-issue.

jeff



More information about the Gcc-patches mailing list