From ab442df7fb453434d80a779844fe1a10c0c802ab Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 23 Jul 2008 10:28:06 +0000 Subject: Add ability to set target options (ix86 only) and optimization options on a function specific basis From-SVN: r138075 --- gcc/doc/options.texi | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'gcc/doc/options.texi') diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index e13279b..4581ead 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -35,8 +35,11 @@ has been declared in this way, it can be used as an option property. @xref{Option properties}. @item -An option definition record. These records have the following fields: +A target specific save record to save additional information. These +records have two fields: the string @samp{TargetSave}, and a +declaration type to go in the @code{cl_target_option} structure. +@item @enumerate @item the name of the option, with the leading ``-'' removed @@ -124,7 +127,10 @@ This property cannot be used alongside @code{Joined} or @code{Separate}. @item UInteger The option's argument is a non-negative integer. The option parser will check and convert the argument before passing it to the relevant -option handler. +option handler. @code{UInteger} should also be used on options like +@code{-falign-loops} where both @code{-falign-loops} and +@code{-falign-loops}=@var{n} are supported to make sure the saved +options are given a full integer. @item Var(@var{var}) The state of this option should be stored in variable @var{var}. @@ -221,4 +227,9 @@ The option should only be accepted if preprocessor condition option will be present even if @var{cond} is false; @var{cond} simply controls whether the option is accepted and whether it is printed in the @option{--help} output. + +@item Save +Build the @code{cl_target_option} structure to hold a copy of the +option, add the functions @code{cl_target_option_save} and +@code{cl_target_option_restore} to save and restore the options. @end table -- cgit v1.1