aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2010-06-30 18:04:48 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-06-30 19:04:48 +0100
commit56cb42ea0658744297dad47b3427458784b92673 (patch)
tree054f741d5e4255fe138aadbb546e8a9e2285f39d /gcc
parent911852ff03454fef83908e8093925b4eee95e373 (diff)
downloadgcc-56cb42ea0658744297dad47b3427458784b92673.zip
gcc-56cb42ea0658744297dad47b3427458784b92673.tar.gz
gcc-56cb42ea0658744297dad47b3427458784b92673.tar.bz2
target.def (pragma_parse): Use DEFHOOK.
* 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. From-SVN: r161624
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/tm.texi4
-rw-r--r--gcc/doc/tm.texi.in4
-rw-r--r--gcc/target.def4
4 files changed, 11 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 48e1a14..9182e97 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 <manu@gcc.gnu.org>
* toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 27c1465..f983949 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 0227464..d33e014 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 ec359d2..8d73ba4 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),