This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Functions that always return
- To: rth at cygnus dot com
- Subject: Re: Functions that always return
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Sun, 29 Oct 00 12:21:53 EST
- Cc: gcc at gcc dot gnu dot org
> Why not? On Alpha, for example, stack checking is part of the ABI.
But all you get out of it is an abnormal termination,
not a thrown exception in the language sense.
Depends on the language. For Ada, a stack overflow raises the
pre-defined exception Storage_Error. This is true when a Ada subprogram
calls a function in another language, such as C++, and it's the one that
overflows the stack.