From 04f989afc1def820c88397298e7b4df5c0fa1730 Mon Sep 17 00:00:00 2001 From: amylaar Date: Wed, 30 Jun 2010 18:04:48 +0000 Subject: [PATCH] * target.def (pragma_parse): Use DEFHOOK. * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook. s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ . * doc/tm.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161624 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/doc/tm.texi | 4 ++-- gcc/doc/tm.texi.in | 4 ++-- gcc/target.def | 4 ++-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 48e1a14e3a4..9182e973881 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -24,6 +24,11 @@ Rename regclass AKA class to rclass. * doc/tm.texi: Regenerate. + * target.def (pragma_parse): Use DEFHOOK. + * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook. + s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ . + * doc/tm.texi: Regenerate. + 2010-06-30 Manuel López-Ibáñez * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 27c1465ccfe..f983949fd79 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -9691,11 +9691,11 @@ information in the @var{struct cl_target_option} structure for function specific options. @end deftypefn -@deftypefn {Target Hook} bool TARGET_OPTION_PRAGMA_PARSE (target @var{args}) +@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 -@code{TARGET_VALID_OPTION_ATTRIBUTE_P} hook. +@code{TARGET_OPTION_VALID_ATTRIBUTE_P} hook. @end deftypefn @deftypefn {Target Hook} void TARGET_OPTION_OVERRIDE (void) diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index 0227464bcef..d33e0145c02 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -9688,11 +9688,11 @@ information in the @var{struct cl_target_option} structure for function specific options. @end deftypefn -@deftypefn {Target Hook} bool TARGET_OPTION_PRAGMA_PARSE (target @var{args}) +@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 -@code{TARGET_VALID_OPTION_ATTRIBUTE_P} hook. +@code{TARGET_OPTION_VALID_ATTRIBUTE_P} hook. @end deftypefn @hook TARGET_OPTION_OVERRIDE diff --git a/gcc/target.def b/gcc/target.def index ec359d245fb..8d73ba4b40e 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -2231,8 +2231,8 @@ DEFHOOK change the state if the options are valid. If the first argument is NULL, the second argument specifies the default options to use. Return true if the options are valid, and set the current state. */ -/* ??? The documentation disagrees on the signature of this hook. */ -DEFHOOK_UNDOC +/* ??? The documentation in tm.texi is incomplete. */ +DEFHOOK (pragma_parse, "", bool, (tree args, tree pop_target), -- 2.11.0