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


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

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