From patchwork Wed Jun 30 02:04:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: RFA: hook signture patches (7/11): TARGET_OPTION_PRAGMA_PARSE Date: Tue, 29 Jun 2010 16:04:42 -0000 From: Joern Rennecke X-Patchwork-Id: 57355 Message-Id: <20100629220442.s43sdg3oo480oo4o-nzlynne@webmail.spamcop.net> To: gcc-patches@gcc.gnu.org 2010-06-29 Joern Rennecke * 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. Index: doc/tm.texi =================================================================== --- doc/tm.texi (revision 161563) +++ doc/tm.texi (working copy) @@ -9691,11 +9690,11 @@ information in the @var{struct cl_target 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) Index: doc/tm.texi.in =================================================================== --- doc/tm.texi.in (revision 161563) +++ doc/tm.texi.in (working copy) @@ -9688,11 +9687,11 @@ information in the @var{struct cl_target 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 Index: target.def =================================================================== --- target.def (revision 161563) +++ target.def (working copy) @@ -2235,8 +2223,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),