diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2018-05-30 23:32:31 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-05-30 17:32:31 -0600 |
commit | 98c112851b10eb607c63d846b5beb786ccbc1ed6 (patch) | |
tree | b6fa66ff036cba232ca58ea0f617d66a3ff06865 | |
parent | 525213a53dd2857c8b27aee31566e1827b27b1c9 (diff) | |
download | gcc-98c112851b10eb607c63d846b5beb786ccbc1ed6.zip gcc-98c112851b10eb607c63d846b5beb786ccbc1ed6.tar.gz gcc-98c112851b10eb607c63d846b5beb786ccbc1ed6.tar.bz2 |
tree-core.h: Update comment about the format of NAME string passed to handler in attribute_spec.
* tree-core.h: Update comment about the format of NAME string
passed to handler in attribute_spec.
From-SVN: r260982
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-core.h | 16 |
2 files changed, 12 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 137c4fb..da3064e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,9 @@ 2018-05-30 Jozef Lawrynowicz <jozef.l@mittosystems.com> - * gcc/config/msp430/msp430.md: Remove erroneous subreg expression from + * tree-core.h: Update comment about the format of NAME string + passed to handler in attribute_spec. + + * config/msp430/msp430.md: Remove erroneous subreg expression from zero_extendqisi2 insn pattern. Remove msp430x ISA restriction on zero_extend{q,h}isi2. diff --git a/gcc/tree-core.h b/gcc/tree-core.h index 478c631..f7be51f 100644 --- a/gcc/tree-core.h +++ b/gcc/tree-core.h @@ -1942,14 +1942,14 @@ struct attribute_spec { bool affects_type_identity; /* Function to handle this attribute. NODE points to the node to which the attribute is to be applied. If a DECL, it should be modified in - place; if a TYPE, a copy should be created. NAME is the name of the - attribute (possibly with leading or trailing __). ARGS is the TREE_LIST - of the arguments (which may be NULL). FLAGS gives further information - about the context of the attribute. Afterwards, the attributes will - be added to the DECL_ATTRIBUTES or TYPE_ATTRIBUTES, as appropriate, - unless *NO_ADD_ATTRS is set to true (which should be done on error, - as well as in any other cases when the attributes should not be added - to the DECL or TYPE). Depending on FLAGS, any attributes to be + place; if a TYPE, a copy should be created. NAME is the canonicalized + name of the attribute i.e. without any leading or trailing underscores. + ARGS is the TREE_LIST of the arguments (which may be NULL). FLAGS gives + further information about the context of the attribute. Afterwards, the + attributes will be added to the DECL_ATTRIBUTES or TYPE_ATTRIBUTES, as + appropriate, unless *NO_ADD_ATTRS is set to true (which should be done on + error, as well as in any other cases when the attributes should not be + added to the DECL or TYPE). Depending on FLAGS, any attributes to be applied to another type or DECL later may be returned; otherwise the return value should be NULL_TREE. This pointer may be NULL if no special handling is required beyond the checks implied |