From 564a129d2270cd6cd14683013483b1471f0d04f1 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 5 May 2010 15:33:11 -0400 Subject: re PR testsuite/43758 (19 new GCC HEAD@158360 regressions) PR testsuite/43758 * target.h (struct gcc_target): Add attribute_takes_identifier_p. * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define. (TARGET_INITIALIZER): Use it. * c-common.c (attribute_takes_identifier_p): Call it. * c-common.h: Update prototype. * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New. (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define. From-SVN: r159079 --- gcc/doc/tm.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/doc') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 3a36314..7eb49d6 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -9525,6 +9525,14 @@ entities to which these attributes are applied and the arguments they take. @end deftypevr +@deftypefn {Target Hook} bool TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P (const_tree @var{name}) +If defined, this target hook is a function which returns true if the +machine-specific attribute named @var{name} expects an identifier +given as its first argument to be passed on as a plain identifier, not +subjected to name lookup. If this is not defined, the default is +false for all machine-specific attributes. +@end deftypefn + @deftypefn {Target Hook} int TARGET_COMP_TYPE_ATTRIBUTES (const_tree @var{type1}, const_tree @var{type2}) If defined, this target hook is a function which returns zero if the attributes on @var{type1} and @var{type2} are incompatible, one if they are compatible, -- cgit v1.1