diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-03-02 03:52:17 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-03-02 03:52:17 +0000 |
commit | 27b41650c178510367442f1a41b4c7a13915056d (patch) | |
tree | 75fe6685e297fa2a98efab337e910c5a2c995d5f /gcc/toplev.c | |
parent | ca734b39f3a1dff4206545b43068998b2bf7821b (diff) | |
download | gcc-27b41650c178510367442f1a41b4c7a13915056d.zip gcc-27b41650c178510367442f1a41b4c7a13915056d.tar.gz gcc-27b41650c178510367442f1a41b4c7a13915056d.tar.bz2 |
Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
* Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
* doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
* flags.h (flag_zero_initialized_in_bss): Declare.
* toplev.c (flag_zero_initialized_in_bss): New flag.
(lang_independent_options): Add flag_zero_initialized_in_bss.
* tree.c (initializer_zerop): New function.
* tree.h (initializer_zerop): Declare.
* varasm.c (assemble_variable): If we can emit bss, put zero
initializers in the bss section.
From-SVN: r50218
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 83de908..7460582 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -803,6 +803,9 @@ int flag_gnu_linker = 0; int flag_gnu_linker = 1; #endif +/* Nonzero means put zero initialized data in the bss section. */ +int flag_zero_initialized_in_bss = 1; + /* Enable SSA. */ int flag_ssa = 0; @@ -1135,6 +1138,8 @@ static const lang_independent_options f_options[] = N_("Suppress output of instruction numbers and line number notes in debugging dumps") }, {"instrument-functions", &flag_instrument_function_entry_exit, 1, N_("Instrument function entry/exit with profiling calls") }, + {"zero-initialized-in-bss", &flag_zero_initialized_in_bss, 1, + N_("Put zero initialized data in the bss section") }, {"ssa", &flag_ssa, 1, N_("Enable SSA optimizations") }, {"ssa-ccp", &flag_ssa_ccp, 1, |