Mercurial > hg > CbC > CbC_gcc
diff gcc/doc/options.texi @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
line wrap: on
line diff
--- a/gcc/doc/options.texi Sun Aug 21 07:07:55 2011 +0900 +++ b/gcc/doc/options.texi Fri Oct 27 22:46:09 2017 +0900 @@ -1,5 +1,4 @@ -@c Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 -@c Free Software Foundation, Inc. +@c Copyright (C) 2003-2017 Free Software Foundation, Inc. @c This is part of the GCC manual. @c For copying conditions, see the file gcc.texi. @@ -71,7 +70,8 @@ @item A variable record to record any additional files that the -@file{options.c} file should include. This is useful to provide +@file{options.c} or @file{options-save.c} file should include. This +is useful to provide inline functions needed for target variables and/or @code{#ifdef} sequences to properly set up the initialization. These records have two fields: the string @samp{SourceInclude} and the name of the @@ -222,6 +222,13 @@ propagate through the @code{Negative} property of the option to be turned off. +As a consequence, if you have a group of mutually-exclusive +options, their @code{Negative} properties should form a circular chain. +For example, if options @option{-@var{a}}, @option{-@var{b}} and +@option{-@var{c}} are mutually exclusive, their respective @code{Negative} +properties should be @samp{Negative(@var{b})}, @samp{Negative(@var{c})} +and @samp{Negative(@var{a})}. + @item Joined @itemx Separate The option takes a mandatory argument. @code{Joined} indicates @@ -257,6 +264,11 @@ @code{-falign-loops}=@var{n} are supported to make sure the saved options are given a full integer. +@item ToLower +The option's argument should be converted to lowercase as part of +putting it in canonical form, and before comparing with the strings +indicated by any @code{Enum} property. + @item NoDriverArg For an option marked @code{Separate}, the option only takes an argument in the compiler proper, not in the driver. This is for @@ -330,10 +342,8 @@ the script will set the macro @code{MASK_@var{name}} to the appropriate bitmask. It will also declare a @code{TARGET_@var{name}} macro that has the value 1 when the option is active and 0 otherwise. If you use @code{Var} -to attach the option to a different variable, the associated macros are -called @code{OPTION_MASK_@var{name}} and @code{OPTION_@var{name}} respectively. - -You can disable automatic bit allocation using @code{MaskExists}. +to attach the option to a different variable, the bitmask macro with be +called @code{OPTION_MASK_@var{name}}. @item InverseMask(@var{othername}) @itemx InverseMask(@var{othername}, @var{thisname}) @@ -342,15 +352,6 @@ the options-processing script will declare a @code{TARGET_@var{thisname}} macro that is 1 when the option is active and 0 otherwise. -@item MaskExists -The mask specified by the @code{Mask} property already exists. -No @code{MASK} or @code{TARGET} definitions should be added to -@file{options.h} in response to this option record. - -The main purpose of this property is to support synonymous options. -The first option should use @samp{Mask(@var{name})} and the others -should use @samp{Mask(@var{name}) MaskExists}. - @item Enum(@var{name}) The option's argument is a string from the set of strings associated with the corresponding @samp{Enum} record. The string is checked and @@ -364,7 +365,8 @@ @item Alias(@var{opt}) @itemx Alias(@var{opt}, @var{arg}) @itemx Alias(@var{opt}, @var{posarg}, @var{negarg}) -The option is an alias for @option{-@var{opt}}. In the first form, +The option is an alias for @option{-@var{opt}} (or the negative form +of that option, depending on @code{NegativeAlias}). In the first form, any argument passed to the alias is considered to be passed to @option{-@var{opt}}, and @option{-@var{opt}} is considered to be negated if the alias is used in negated form. In the second form, the @@ -387,6 +389,13 @@ for it; only the canonical form of the option will be seen in those places. +@item NegativeAlias +For an option marked with @code{Alias(@var{opt})}, the option is +considered to be an alias for the positive form of @option{-@var{opt}} +if negated and for the negative form of @option{-@var{opt}} if not +negated. @code{NegativeAlias} may not be used with the forms of +@code{Alias} taking more than one argument. + @item Ignore This option is ignored apart from printing any warning specified using @code{Warn}. The option will not be seen by specs and no @samp{OPT_} @@ -421,6 +430,13 @@ @code{Var} should be saved and restored when the optimization level is changed with @code{optimize} attributes. +@item PerFunction +This is an option that can be overridden on a per-function basis. +@code{Optimization} implies @code{PerFunction}, but options that do not +affect executable code generation may use this flag instead, so that the +option is not taken into account in ways that might affect executable +code generation. + @item Undocumented The option is deliberately missing documentation and should not be included in the @option{--help} output. @@ -449,4 +465,44 @@ value of @option{-fmath-errno} for languages that do not use @code{errno}. +@item EnabledBy(@var{opt}) +@itemx EnabledBy(@var{opt} || @var{opt2}) +@itemx EnabledBy(@var{opt} && @var{opt2}) +If not explicitly set, the option is set to the value of +@option{-@var{opt}}; multiple options can be given, separated by +@code{||}. The third form using @code{&&} specifies that the option is +only set if both @var{opt} and @var{opt2} are set. The options @var{opt} +and @var{opt2} must have the @code{Common} property; otherwise, use +@code{LangEnabledBy}. + +@item LangEnabledBy(@var{language}, @var{opt}) +@itemx LangEnabledBy(@var{language}, @var{opt}, @var{posarg}, @var{negarg}) +When compiling for the given language, the option is set to the value +of @option{-@var{opt}}, if not explicitly set. @var{opt} can be also a list +of @code{||} separated options. In the second form, if +@var{opt} is used in the positive form then @var{posarg} is considered +to be passed to the option, and if @var{opt} is used in the negative +form then @var{negarg} is considered to be passed to the option. It +is possible to specify several different languages. Each +@var{language} must have been declared by an earlier @code{Language} +record. @xref{Option file format}. + +@item NoDWARFRecord +The option is omitted from the producer string written by +@option{-grecord-gcc-switches}. + +@item PchIgnore +Even if this is a target option, this option will not be recorded / compared +to determine if a precompiled header file matches. + +@item CPP(@var{var}) +The state of this option should be kept in sync with the preprocessor +option @var{var}. If this property is set, then properties @code{Var} +and @code{Init} must be set as well. + +@item CppReason(@var{CPP_W_Enum}) +This warning option corresponds to @code{cpplib.h} warning reason code +@var{CPP_W_Enum}. This should only be used for warning options of the +C-family front-ends. + @end table