diff options
author | Richard Guenther <rguenther@suse.de> | 2010-05-25 09:43:59 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-05-25 09:43:59 +0000 |
commit | be6d3f0e89340dc7f7c2281aa747aa6560c05715 (patch) | |
tree | dd1f2d3dad086f5e1ff288dfa3a8011ce6cd30b5 /gcc/doc/invoke.texi | |
parent | ac5eda130d2cb1948a618873440e67216806e5d9 (diff) | |
download | gcc-be6d3f0e89340dc7f7c2281aa747aa6560c05715.zip gcc-be6d3f0e89340dc7f7c2281aa747aa6560c05715.tar.gz gcc-be6d3f0e89340dc7f7c2281aa747aa6560c05715.tar.bz2 |
invoke.texi: Document -Ofast.
2010-05-25 Richard Guenther <rguenther@suse.de>
* doc/invoke.texi: Document -Ofast.
* target.h (struct gcc_target): Add handle_ofast.
* target-def.h (TARGET_HANDLE_OFAST): Add.
(TARGET_INITIALIZER): Adjust.
* opts.c (decode_options): Handle -Ofast. Enable
-ffast-math with it.
* common.opt (Ofast): Add.
From-SVN: r159815
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index dbde14d..e9b3eab 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -393,7 +393,7 @@ Objective-C and Objective-C++ Dialects}. -fvariable-expansion-in-unroller -fvect-cost-model -fvpt -fweb @gol -fwhole-program -fwhopr[=@var{n}] -fwpa -fuse-linker-plugin @gol --param @var{name}=@var{value} --O -O0 -O1 -O2 -O3 -Os} +-O -O0 -O1 -O2 -O3 -Os -Ofast} @item Preprocessor Options @xref{Preprocessor Options,,Options Controlling the Preprocessor}. @@ -5891,6 +5891,13 @@ optimizations designed to reduce code size. -falign-labels -freorder-blocks -freorder-blocks-and-partition @gol -fprefetch-loop-arrays -ftree-vect-loop-version} +@item -Ofast +@opindex Ofast +Disregard strict standards compliance. @option{-Ofast} enables all +@option{-O3} optimizations. It also enables optimizations that are not +valid for all standard compliant programs. +It turns on @option{-ffast-math}. + If you use multiple @option{-O} options, with or without level numbers, the last such option is the one that is effective. @end table |