summaryrefslogtreecommitdiff
path: root/gcc/invoke.texi
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-01-26 23:00:04 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-01-26 23:00:04 +0000
commit5736198392201c503b0bd9f8ee86fb8073f19f45 (patch)
treef38e94fefea9081b3c8c56aea7c5e45f007ac4bc /gcc/invoke.texi
parentaaa36d7cead5de11c84cb2ea57807beaac76062e (diff)
downloadgcc-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/invoke.texi')
-rw-r--r--gcc/invoke.texi9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/invoke.texi b/gcc/invoke.texi
index ef833830261..562eb77e6f1 100644
--- a/gcc/invoke.texi
+++ b/gcc/invoke.texi
@@ -1,4 +1,4 @@
-@c Copyright (C) 1988,89,92,93,94,95,96,1997 Free Software Foundation, Inc.
+@c Copyright (C) 1988,89,92-97,1998 Free Software Foundation, Inc.
@c This is part of the GCC manual.
@c For copying conditions, see the file gcc.texi.
@@ -155,7 +155,7 @@ in the following sections.
-fschedule-insns2 -fstrength-reduce -fthread-jumps
-funroll-all-loops -funroll-loops
-fmove-all-movables -freduce-all-givs
--O -O0 -O1 -O2 -O3
+-O -O0 -O1 -O2 -O3 -Os
@end smallexample
@item Preprocessor Options
@@ -2078,6 +2078,11 @@ Optimize yet more. @samp{-O3} turns on all optimizations specified by
@item -O0
Do not optimize.
+@item -Os
+Optimize for size. @samp{-Os} enables all @samp{-O2} optimizations that
+do not typically increase code size. It also performs further
+optimizations designed to reduce code size.
+
If you use multiple @samp{-O} options, with or without level numbers,
the last such option is the one that is effective.
@end table