This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Nested functions on ARM
- To: Nick Clifton <nickc at redhat dot com>
- Subject: Re: Nested functions on ARM
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 13 Nov 2000 18:46:38 -0800
- Cc: rearnshaw at cambridge dot arm dot com, gcc-bugs at gcc dot gnu dot org, Philip dot Blundell at pobox dot com, scottb at netwinder dot org
- References: <200011140202.SAA19348@elmo.cygnus.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Nick Clifton <nickc@redhat.com> writes:
> The second problem is that the code uses an unallocated stack slot
> (ie a slot below the stack pointer). It is only used for a short
> period of time, but it is vulnerable to corruption by interrupt
> handlers and the like. I do not know if this will be a problem in
> real life.
This cannot work. Signals are raised in real life and this will crash
the applications which use this stack slot. Arguing with "it will
almost never happen" is not acceptable since at some point it will
happen.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------