diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 2008-07-23 10:28:06 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2008-07-23 10:28:06 +0000 |
commit | ab442df7fb453434d80a779844fe1a10c0c802ab (patch) | |
tree | efd8e61a3d2ff9dcff5eb5bf03e25922191f7df5 /gcc/doc/options.texi | |
parent | 5295185c3150a8d31685dc44248aa058246bbe73 (diff) | |
download | gcc-ab442df7fb453434d80a779844fe1a10c0c802ab.zip gcc-ab442df7fb453434d80a779844fe1a10c0c802ab.tar.gz gcc-ab442df7fb453434d80a779844fe1a10c0c802ab.tar.bz2 |
Add ability to set target options (ix86 only) and optimization options on a function specific basis
From-SVN: r138075
Diffstat (limited to 'gcc/doc/options.texi')
-rw-r--r-- | gcc/doc/options.texi | 15 |
1 files changed, 13 insertions, 2 deletions
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 |