aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-07-17 11:26:41 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1997-07-17 11:26:41 -0400
commitbd83d0ac9ff9c38680fecf83009771d31254ef18 (patch)
treeb75201ccec8614c491fa0b0c4fa4987ed255a259 /gcc
parent5e4ef18a2b522c476698239fe541ddaff1d6d6b4 (diff)
downloadgcc-bd83d0ac9ff9c38680fecf83009771d31254ef18.zip
gcc-bd83d0ac9ff9c38680fecf83009771d31254ef18.tar.gz
gcc-bd83d0ac9ff9c38680fecf83009771d31254ef18.tar.bz2
(flag_stack_check): New variable.
(f_options): Add "stack-check". From-SVN: r14473
Diffstat (limited to 'gcc')
-rw-r--r--gcc/toplev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 1129281..4804a11 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -601,6 +601,10 @@ int flag_gnu_linker = 1;
/* Tag all structures with __attribute__(packed) */
int flag_pack_struct = 0;
+/* Emit code to check for stack overflow; also may cause large objects
+ to be allocated dynamically. */
+int flag_stack_check;
+
/* Table of language-independent -f options.
STRING is the option name. VARIABLE is the address of the variable.
ON_VALUE is the value to store in VARIABLE
@@ -655,6 +659,7 @@ struct { char *string; int *variable; int on_value;} f_options[] =
{"verbose-asm", &flag_verbose_asm, 1},
{"gnu-linker", &flag_gnu_linker, 1},
{"pack-struct", &flag_pack_struct, 1},
+ {"stack-check", &flag_stack_check, 1},
{"bytecode", &output_bytecode, 1}
};