diff mbox

RFA: hook signture patches (7/11): TARGET_OPTION_PRAGMA_PARSE

Message ID 20100629220442.s43sdg3oo480oo4o-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke June 30, 2010, 2:04 a.m. UTC
2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>

	* 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.
diff mbox

Patch

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),