Commit bd83d0ac by Richard Kenner

(flag_stack_check): New variable.

(f_options): Add "stack-check".

From-SVN: r14473
parent 5e4ef18a
...@@ -601,6 +601,10 @@ int flag_gnu_linker = 1; ...@@ -601,6 +601,10 @@ int flag_gnu_linker = 1;
/* Tag all structures with __attribute__(packed) */ /* Tag all structures with __attribute__(packed) */
int flag_pack_struct = 0; 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. /* Table of language-independent -f options.
STRING is the option name. VARIABLE is the address of the variable. STRING is the option name. VARIABLE is the address of the variable.
ON_VALUE is the value to store in VARIABLE ON_VALUE is the value to store in VARIABLE
...@@ -655,6 +659,7 @@ struct { char *string; int *variable; int on_value;} f_options[] = ...@@ -655,6 +659,7 @@ struct { char *string; int *variable; int on_value;} f_options[] =
{"verbose-asm", &flag_verbose_asm, 1}, {"verbose-asm", &flag_verbose_asm, 1},
{"gnu-linker", &flag_gnu_linker, 1}, {"gnu-linker", &flag_gnu_linker, 1},
{"pack-struct", &flag_pack_struct, 1}, {"pack-struct", &flag_pack_struct, 1},
{"stack-check", &flag_stack_check, 1},
{"bytecode", &output_bytecode, 1} {"bytecode", &output_bytecode, 1}
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment