[cfe-commits] r163560 - /cfe/trunk/docs/tools/clang.pod
Ted Kremenek
kremenek at apple.com
Mon Sep 10 15:50:05 PDT 2012
Author: kremenek
Date: Mon Sep 10 17:50:05 2012
New Revision: 163560
URL: http://llvm.org/viewvc/llvm-project?rev=163560&view=rev
Log:
Revert "Remove clang man page reference to -Oz. It's not an option we want people to use, and is around for historical reasons."
This should be discussed more first.
Modified:
cfe/trunk/docs/tools/clang.pod
Modified: cfe/trunk/docs/tools/clang.pod
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/tools/clang.pod?rev=163560&r1=163559&r2=163560&view=diff
==============================================================================
--- cfe/trunk/docs/tools/clang.pod (original)
+++ cfe/trunk/docs/tools/clang.pod Mon Sep 10 17:50:05 2012
@@ -7,7 +7,7 @@
=head1 SYNOPSIS
B<clang> [B<-c>|B<-S>|B<-E>] B<-std=>I<standard> B<-g>
- [B<-O0>|B<-O1>|B<-O2>|B<-Os>|B<-O3>|B<-O4>]
+ [B<-O0>|B<-O1>|B<-O2>|B<-Os>|B<-Oz>|B<-O3>|B<-O4>]
B<-W>I<warnings...> B<-pedantic>
B<-I>I<dir...> B<-L>I<dir...>
B<-D>I<macro[=defn]>
@@ -263,12 +263,13 @@
=over
-=item B<-O0> B<-O1> B<-O2> B<-Os> B<-O3> B<-O4>
+=item B<-O0> B<-O1> B<-O2> B<-Os> B<-Oz> B<-O3> B<-O4>
Specify which optimization level to use. B<-O0> means "no optimization": this
level compiles the fastest and generates the most debuggable code. B<-O2> is a
moderate level of optimization which enables most optimizations. B<-Os> is like
-B<-O2> with extra optimizations to reduce code size. B<-O3> is like B<-O2>,
+B<-O2> with extra optimizations to reduce code size. B<-Oz> is like B<-Os>
+(and thus B<-O2>), but reduces code size further. B<-O3> is like B<-O2>,
except that it enables optimizations that take longer to perform or that may
generate larger code (in an attempt to make the program run faster). On
supported platforms, B<-O4> enables link-time optimization; object files are
More information about the cfe-commits
mailing list