This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: nested functions on Arm
- To: rearnsha at arm dot com
- Subject: Re: nested functions on Arm
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 13 Sep 2000 09:57:11 -0700
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <200009131211.NAA29862@cam-mail2.cambridge.arm.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------