diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-01-26 23:00:04 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-01-26 23:00:04 +0000 |
commit | 5736198392201c503b0bd9f8ee86fb8073f19f45 (patch) | |
tree | f38e94fefea9081b3c8c56aea7c5e45f007ac4bc /gcc/flags.h | |
parent | aaa36d7cead5de11c84cb2ea57807beaac76062e (diff) | |
download | gcc-5736198392201c503b0bd9f8ee86fb8073f19f45.tar.gz |
* flags.h: New flag (optimize_size).
* toplev.c (main): Parse -Os option and set optimize_space
accordingly.
* gcc.c (default_compilers), cp/lang-specs.h, f/lang-specs.h: Define
__OPTIMIZE_SIZE__ when compiling with -Os.
* config/dsp16xx/dsp16xx.h, config/i386/i386.h,
config/i386/dgux.h, config/i960/i960.h, config/pdp11/pdp11.h,
config/v850/v850.h (OPTIMIZATION_OPTIONS): New SIZE argument
to macro.
* config/i386/i386.c (optimization_options): Accept new SIZE argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17497 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index 616726e06d6..f5d1255e9b3 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -1,5 +1,5 @@ /* Compilation switch flag definitions for GNU CC. - Copyright (C) 1987, 88, 94, 95, 96, 1997 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 94-97, 1998 Free Software Foundation, Inc. This file is part of GNU CC. @@ -53,6 +53,10 @@ extern int use_gnu_debug_info_extensions; extern int optimize; +/* Nonzero means optimize for size. -Os. */ + +extern int optimize_size; + /* Nonzero means do stupid register allocation. -noreg. Currently, this is 1 if `optimize' is 0. */ |