diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2013-03-03 20:21:26 +0000 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2013-03-03 20:21:26 +0000 |
commit | b5f0b619ad591b4a6d9019c11e2d4edbf7050da4 (patch) | |
tree | cd68349cb850e06995ade8d1a0ac880a25aa6a00 /gcc/doc | |
parent | 06926f7c633f3ee763aade344aa0f91c50bb801a (diff) |
2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
the attribute is now called "target" instead of "option".
(TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
* doc/tm.texi.in (Target Attributes): Likewise document the correct
attribute/pragma name for TARGET_OPTION_VALID_P and
TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
* doc/tm.texi: Regenerated.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@196418 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 36 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 36 |
2 files changed, 36 insertions, 36 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index ce2b44d8545..cbbc82dfe39 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -9848,40 +9848,40 @@ target specific attribute attached to it, it will not be inlined. @end deftypefn @deftypefn {Target Hook} bool TARGET_OPTION_VALID_ATTRIBUTE_P (tree @var{fndecl}, tree @var{name}, tree @var{args}, int @var{flags}) -This hook is called to parse the @code{attribute(option("..."))}, and -it allows the function to set different target machine compile time -options for the current function that might be different than the -options specified on the command line. The hook should return +This hook is called to parse @code{attribute(target("..."))}, which +allows setting target-specific options on individual functions. +These function-specific options may differ +from the options specified on the command line. The hook should return @code{true} if the options are valid. -The hook should set the @var{DECL_FUNCTION_SPECIFIC_TARGET} field in -the function declaration to hold a pointer to a target specific -@var{struct cl_target_option} structure. +The hook should set the @code{DECL_FUNCTION_SPECIFIC_TARGET} field in +the function declaration to hold a pointer to a target-specific +@code{struct cl_target_option} structure. @end deftypefn @deftypefn {Target Hook} void TARGET_OPTION_SAVE (struct cl_target_option *@var{ptr}) -This hook is called to save any additional target specific information -in the @var{struct cl_target_option} structure for function specific +This hook is called to save any additional target-specific information +in the @code{struct cl_target_option} structure for function-specific options. @xref{Option file format}. @end deftypefn @deftypefn {Target Hook} void TARGET_OPTION_RESTORE (struct cl_target_option *@var{ptr}) -This hook is called to restore any additional target specific -information in the @var{struct cl_target_option} structure for -function specific options. +This hook is called to restore any additional target-specific +information in the @code{struct cl_target_option} structure for +function-specific options. @end deftypefn @deftypefn {Target Hook} void TARGET_OPTION_PRINT (FILE *@var{file}, int @var{indent}, struct cl_target_option *@var{ptr}) -This hook is called to print any additional target specific -information in the @var{struct cl_target_option} structure for -function specific options. +This hook is called to print any additional target-specific +information in the @code{struct cl_target_option} structure for +function-specific options. @end deftypefn @deftypefn {Target Hook} bool TARGET_OPTION_PRAGMA_PARSE (tree @var{args}, tree @var{pop_target}) -This target hook parses the options for @code{#pragma GCC option} to -set the machine specific options for functions that occur later in the -input stream. The options should be the same as handled by the +This target hook parses the options for @code{#pragma GCC target}, which +sets the target-specific options for functions that occur later in the +input stream. The options accepted should be the same as those handled by the @code{TARGET_OPTION_VALID_ATTRIBUTE_P} hook. @end deftypefn diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index d6e7ce79f9d..dfba947f51b 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -9709,40 +9709,40 @@ target specific attribute attached to it, it will not be inlined. @end deftypefn @hook TARGET_OPTION_VALID_ATTRIBUTE_P -This hook is called to parse the @code{attribute(option("..."))}, and -it allows the function to set different target machine compile time -options for the current function that might be different than the -options specified on the command line. The hook should return +This hook is called to parse @code{attribute(target("..."))}, which +allows setting target-specific options on individual functions. +These function-specific options may differ +from the options specified on the command line. The hook should return @code{true} if the options are valid. -The hook should set the @var{DECL_FUNCTION_SPECIFIC_TARGET} field in -the function declaration to hold a pointer to a target specific -@var{struct cl_target_option} structure. +The hook should set the @code{DECL_FUNCTION_SPECIFIC_TARGET} field in +the function declaration to hold a pointer to a target-specific +@code{struct cl_target_option} structure. @end deftypefn @hook TARGET_OPTION_SAVE -This hook is called to save any additional target specific information -in the @var{struct cl_target_option} structure for function specific +This hook is called to save any additional target-specific information +in the @code{struct cl_target_option} structure for function-specific options. @xref{Option file format}. @end deftypefn @hook TARGET_OPTION_RESTORE -This hook is called to restore any additional target specific -information in the @var{struct cl_target_option} structure for -function specific options. +This hook is called to restore any additional target-specific +information in the @code{struct cl_target_option} structure for +function-specific options. @end deftypefn @hook TARGET_OPTION_PRINT -This hook is called to print any additional target specific -information in the @var{struct cl_target_option} structure for -function specific options. +This hook is called to print any additional target-specific +information in the @code{struct cl_target_option} structure for +function-specific options. @end deftypefn @hook TARGET_OPTION_PRAGMA_PARSE -This target hook parses the options for @code{#pragma GCC option} to -set the machine specific options for functions that occur later in the -input stream. The options should be the same as handled by the +This target hook parses the options for @code{#pragma GCC target}, which +sets the target-specific options for functions that occur later in the +input stream. The options accepted should be the same as those handled by the @code{TARGET_OPTION_VALID_ATTRIBUTE_P} hook. @end deftypefn |