diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-05 19:33:11 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-05 19:33:11 +0000 |
commit | 47b19b941e0899b3ec4df9868184297c43ed25c2 (patch) | |
tree | 2f0d1539c4a77f271f5a52bc32ed5f1726956909 /gcc/target.h | |
parent | 0217ac3cadd9857f653e4baed0269172714a70e8 (diff) | |
download | gcc-47b19b941e0899b3ec4df9868184297c43ed25c2.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159079 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.h')
-rw-r--r-- | gcc/target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h index 6ff7d1d639e..2f99a4f8bb4 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). */ |