This is the mail archive of the gcc-bugs@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]

Re: nested functions on Arm


Richard Earnshaw <rearnsha@arm.com> writes:

> This is a known problem.  Unfortunately, I've no idea how to solve it.  

Since you know when you are compiling a nested function, why not
simply allow r8 be pushed to the stack in the trampoline code, compute
all the stack accesses (parameters etc) accordingly, and restore r8
before jumping back?  This means a special case for all the code which
access the stack for non-local variables but it should be able to
solve the problem.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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