[llvm-commits] [llvm-gcc-4.2] r129946 - in /llvm-gcc-4.2/trunk: build_gcc gcc/doc/invoke.texi

Stuart Hastings stuart at apple.com
Thu Apr 21 15:44:25 PDT 2011


Author: stuart
Date: Thu Apr 21 17:44:25 2011
New Revision: 129946

URL: http://llvm.org/viewvc/llvm-project?rev=129946&view=rev
Log:
Fold llvm-gcc manpage content into gcc manpage, include gcc manpage in docs. rdar://problem/9286944

Modified:
    llvm-gcc-4.2/trunk/build_gcc
    llvm-gcc-4.2/trunk/gcc/doc/invoke.texi

Modified: llvm-gcc-4.2/trunk/build_gcc
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/build_gcc?rev=129946&r1=129945&r2=129946&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/build_gcc (original)
+++ llvm-gcc-4.2/trunk/build_gcc Thu Apr 21 17:44:25 2011
@@ -614,15 +614,16 @@
 done
 
 # LLVM LOCAL begin
-# Compress manpages
-gzip -f $MDIR/*
-
 MAN1_DIR=$DEST_DIR/Developer/usr/share/man/man1
 mkdir -p ${MAN1_DIR}
+for i in gcc.1 g++.1 ; do
+    cp $DIR/obj-$BUILD-$BUILD/gcc/doc/$i ${MAN1_DIR}/$i
+done
 cp $ORIG_SRC_DIR/gcc/doc/llvm-gcc.1 ${MAN1_DIR}/llvm-gcc.1
+# llvm-g++ manpage is a dup of llvm-gcc manpage
 cp $ORIG_SRC_DIR/gcc/doc/llvm-gcc.1 ${MAN1_DIR}/llvm-g++.1
-gzip -f ${MAN1_DIR}/llvm-gcc.1
-gzip -f ${MAN1_DIR}/llvm-g++.1
+# Compress manpages
+gzip -f $MDIR/* ${MAN1_DIR}/*
 # LLVM LOCAL end
 
 # Build driver-driver using fully-named drivers

Modified: llvm-gcc-4.2/trunk/gcc/doc/invoke.texi
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/doc/invoke.texi?rev=129946&r1=129945&r2=129946&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/doc/invoke.texi (original)
+++ llvm-gcc-4.2/trunk/gcc/doc/invoke.texi Thu Apr 21 17:44:25 2011
@@ -47,9 +47,9 @@
 
 @c APPLE LOCAL begin manual
 In Apple's version of GCC, both @samp{cc} and @samp{gcc} are actually
-symbolic links to a compiler named like gcc- at var{version}.
+symbolic links to a compiler named like llvm-gcc- at var{version}.
 Similarly, @samp{c++} and @samp{g++} are links to a compiler named like
-g++- at var{version}.
+llvm-g++- at var{version}.
 
 Note that Apple's GCC includes a number of extensions to standard GCC
 (flagged below with ``APPLE ONLY''), and that not all generic GCC
@@ -5072,18 +5072,16 @@
 optimizations that have a flag are listed.
 
 @table @gcctabopt
- at item -O
- at itemx -O1
- at opindex O
+ at item -O1
 @opindex O1
 Optimize.  Optimizing compilation takes somewhat more time, and a lot
 more memory for a large function.
 
-With @option{-O}, the compiler tries to reduce code size and execution
+With @option{-O1}, the compiler tries to reduce code size and execution
 time, without performing any optimizations that take a great deal of
 compilation time.
 
- at option{-O} turns on the following optimization flags:
+ at option{-O1} turns on the following optimization flags:
 @gccoptlist{-fdefer-pop @gol
 -fdelayed-branch @gol
 -fguess-branch-probability @gol
@@ -5103,18 +5101,22 @@
 -funit-at-a-time @gol
 -fmerge-constants}
 
- at option{-O} also turns on @option{-fomit-frame-pointer} on machines
+ at option{-O1} also turns on @option{-fomit-frame-pointer} on machines
 where doing so does not interfere with debugging.
 
- at item -O2
+ at item -O
+ at opindex O
+ at itemx -O2
 @opindex O2
 Optimize even more.  GCC performs nearly all supported optimizations
 that do not involve a space-speed tradeoff.  The compiler does not
 perform loop unrolling or function inlining when you specify @option{-O2}.
-As compared to @option{-O}, this option increases both compilation time
+As compared to @option{-O1}, this option increases both compilation time
 and the performance of the generated code.
 
- at option{-O2} turns on all optimization flags specified by @option{-O}.  It
+LLVM-GCC's @option{-O} is a synonym for @option{-O2}.
+
+ at option{-O2} turns on all optimization flags specified by @option{-O1}.  It
 also turns on the following optimization flags:
 @gccoptlist{-fthread-jumps @gol
 -fcrossjumping @gol
@@ -6478,6 +6480,16 @@
 This option is experimental and does not currently guarantee to
 disable all GCC optimizations that affect signaling NaN behavior.
 
+ at item -fno-honor-nans
+ at opindex fno-honor-nans
+Allow optimizations for floating-point arithmetic that assume that arguments and results are not NaNs.
+The default is -fhonor-nans.
+
+ at item -fno-honor-infinites
+ at opindex fno-honor-infinites
+Allow optimizations for floating-point arithmetic that assume that arguments and results are not +-Infs.
+The default is -fhonor-infinites.
+
 @item -fsingle-precision-constant
 @opindex fsingle-precision-constant
 Treat floating point constant as single precision constant instead of





More information about the llvm-commits mailing list