------- Comment #1 from niklas dot holsti at tidorum dot fi 2007-11-16 18:19 ------- It would certainly be in the Ada spirit to have stack-checking enabled by default.
If GCC offers a selection of stack-checking methods, I think the default method should be the most reliable and general one, even if this is the slower method. If the "guard pages" method is less reliable than explicit stack checking code (comparing the stack pointer to a limit) I think the explicit checks should be the default; a specific command-line switch should be required to use the less reliable method instead. Furthermore, if stack checks depend on the value of an environment variable (eg. GNAT_STACK_LIMIT) I think that execution of the program should fail immediately if the variable is not defined in the program's environment. -- niklas dot holsti at tidorum dot fi changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |niklas dot holsti at tidorum | |dot fi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34118