aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-05-05 15:33:11 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-05-05 15:33:11 -0400
commit564a129d2270cd6cd14683013483b1471f0d04f1 (patch)
tree2f0d1539c4a77f271f5a52bc32ed5f1726956909 /gcc/target.h
parent58c13acc6abf49f392d72d269e6c0a88eae25319 (diff)
downloadgcc-564a129d2270cd6cd14683013483b1471f0d04f1.zip
gcc-564a129d2270cd6cd14683013483b1471f0d04f1.tar.gz
gcc-564a129d2270cd6cd14683013483b1471f0d04f1.tar.bz2
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
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 6ff7d1d..2f99a4f 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -549,6 +549,10 @@ struct gcc_target
Ignored if NULL. */
const struct attribute_spec *attribute_table;
+ /* Return true iff attribute NAME expects a plain identifier as its first
+ argument. */
+ bool (*attribute_takes_identifier_p) (const_tree name);
+
/* Return zero if the attributes on TYPE1 and TYPE2 are incompatible,
one if they are compatible and two if they are nearly compatible
(which causes a warning to be generated). */