From: Chad Rosier Date: Sat, 30 Apr 2011 01:40:58 +0000 (+0000) Subject: Add documentation for -Oz flag. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4525ae5cd5af82fe06c925b60267afce12d594b1;p=clang Add documentation for -Oz flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130569 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/tools/clang.pod b/docs/tools/clang.pod index 50b0199b73..4f4c7bfc4a 100644 --- a/docs/tools/clang.pod +++ b/docs/tools/clang.pod @@ -268,7 +268,8 @@ may not exist on earlier ones. 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