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