Nested functions on ARM

Ulrich Drepper drepper@redhat.com
Mon Nov 13 18:47:00 GMT 2000


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   `------------------------


More information about the Gcc-bugs mailing list