Commit bab9b7cb by Martin Liska Committed by Martin Liska

invoke.texi (Options That Control Optimization): Documentation for -foptimize-strlen introduced.

	* doc/invoke.texi (Options That Control Optimization): Documentation
	for -foptimize-strlen introduced. Optimization levels default options
	fixed.

From-SVN: r213407
parent 944fa280
2014-08-01 Martin Liska <mliska@suse.cz>
* doc/invoke.texi (Options That Control Optimization): Documentation
for -foptimize-strlen introduced. Optimization levels default options
fixed.
2014-08-01 Jakub Jelinek <jakub@redhat.com> 2014-08-01 Jakub Jelinek <jakub@redhat.com>
* opts.c (common_handle_option): Handle -fsanitize=alignment. * opts.c (common_handle_option): Handle -fsanitize=alignment.
......
...@@ -6959,25 +6959,31 @@ compilation time. ...@@ -6959,25 +6959,31 @@ compilation time.
@option{-O} turns on the following optimization flags: @option{-O} turns on the following optimization flags:
@gccoptlist{ @gccoptlist{
-fauto-inc-dec @gol -fauto-inc-dec @gol
-fbranch-count-reg @gol
-fcombine-stack-adjustments @gol
-fcompare-elim @gol -fcompare-elim @gol
-fcprop-registers @gol -fcprop-registers @gol
-fdce @gol -fdce @gol
-fdefer-pop @gol -fdefer-pop @gol
-fdelayed-branch @gol -fdelayed-branch @gol
-fdse @gol -fdse @gol
-fforward-propagate @gol
-fguess-branch-probability @gol -fguess-branch-probability @gol
-fif-conversion2 @gol -fif-conversion2 @gol
-fif-conversion @gol -fif-conversion @gol
-finline-functions-called-once @gol
-fipa-pure-const @gol -fipa-pure-const @gol
-fipa-profile @gol -fipa-profile @gol
-fipa-reference @gol -fipa-reference @gol
-fmerge-constants -fmerge-constants @gol
-fmove-loop-invariants @gol
-fshrink-wrap @gol
-fsplit-wide-types @gol -fsplit-wide-types @gol
-ftree-bit-ccp @gol -ftree-bit-ccp @gol
-ftree-builtin-call-dce @gol
-ftree-ccp @gol -ftree-ccp @gol
-fssa-phiopt @gol -fssa-phiopt @gol
-ftree-ch @gol -ftree-ch @gol
-ftree-copy-prop @gol
-ftree-copyrename @gol -ftree-copyrename @gol
-ftree-dce @gol -ftree-dce @gol
-ftree-dominator-opts @gol -ftree-dominator-opts @gol
...@@ -6985,6 +6991,7 @@ compilation time. ...@@ -6985,6 +6991,7 @@ compilation time.
-ftree-forwprop @gol -ftree-forwprop @gol
-ftree-fre @gol -ftree-fre @gol
-ftree-phiprop @gol -ftree-phiprop @gol
-ftree-sink @gol
-ftree-slsr @gol -ftree-slsr @gol
-ftree-sra @gol -ftree-sra @gol
-ftree-pta @gol -ftree-pta @gol
...@@ -7016,19 +7023,23 @@ also turns on the following optimization flags: ...@@ -7016,19 +7023,23 @@ also turns on the following optimization flags:
-fhoist-adjacent-loads @gol -fhoist-adjacent-loads @gol
-finline-small-functions @gol -finline-small-functions @gol
-findirect-inlining @gol -findirect-inlining @gol
-fipa-cp @gol
-fipa-sra @gol -fipa-sra @gol
-fisolate-erroneous-paths-dereference @gol -fisolate-erroneous-paths-dereference @gol
-foptimize-sibling-calls @gol -foptimize-sibling-calls @gol
-foptimize-strlen @gol
-fpartial-inlining @gol -fpartial-inlining @gol
-fpeephole2 @gol -fpeephole2 @gol
-freorder-blocks -freorder-functions @gol -freorder-blocks -freorder-blocks-and-partition -freorder-functions @gol
-frerun-cse-after-loop @gol -frerun-cse-after-loop @gol
-fsched-interblock -fsched-spec @gol -fsched-interblock -fsched-spec @gol
-fschedule-insns -fschedule-insns2 @gol -fschedule-insns -fschedule-insns2 @gol
-fstrict-aliasing -fstrict-overflow @gol -fstrict-aliasing -fstrict-overflow @gol
-ftree-builtin-call-dce @gol
-ftree-switch-conversion -ftree-tail-merge @gol -ftree-switch-conversion -ftree-tail-merge @gol
-ftree-pre @gol -ftree-pre @gol
-ftree-vrp} -ftree-vrp @gol
-fuse-caller-save}
Please note the warning under @option{-fgcse} about Please note the warning under @option{-fgcse} about
invoking @option{-O2} on programs that use computed gotos. invoking @option{-O2} on programs that use computed gotos.
...@@ -7152,6 +7163,14 @@ Optimize sibling and tail recursive calls. ...@@ -7152,6 +7163,14 @@ Optimize sibling and tail recursive calls.
Enabled at levels @option{-O2}, @option{-O3}, @option{-Os}. Enabled at levels @option{-O2}, @option{-O3}, @option{-Os}.
@item -foptimize-strlen
@opindex foptimize-strlen
Optimize various standard C string functions (e.g. @code{strlen},
@code{strchr} or @code{strcpy}) and
their _FORTIFY_SOURCE counterparts into faster alternatives.
Enabled at levels @option{-O2}, @option{-O3}.
@item -fno-inline @item -fno-inline
@opindex fno-inline @opindex fno-inline
Do not expand any functions inline apart from those marked with Do not expand any functions inline apart from those marked with
...@@ -7317,6 +7336,8 @@ register, compare it against zero, then branch based upon the result. ...@@ -7317,6 +7336,8 @@ register, compare it against zero, then branch based upon the result.
This option is only meaningful on architectures that support such This option is only meaningful on architectures that support such
instructions, which include x86, PowerPC, IA-64 and S/390. instructions, which include x86, PowerPC, IA-64 and S/390.
Enabled by default at -O1 and higher.
The default is @option{-fbranch-count-reg}. The default is @option{-fbranch-count-reg}.
@item -fno-function-cse @item -fno-function-cse
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment