From be6d3f0e89340dc7f7c2281aa747aa6560c05715 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 25 May 2010 09:43:59 +0000 Subject: invoke.texi: Document -Ofast. 2010-05-25 Richard Guenther * 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 --- gcc/doc/invoke.texi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gcc/doc/invoke.texi') 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 -- cgit v1.1