Commit 98c11285 by Jozef Lawrynowicz Committed by Jeff Law

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
parent 525213a5
2018-05-30 Jozef Lawrynowicz <jozef.l@mittosystems.com> 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_extendqisi2 insn pattern. Remove msp430x ISA restriction on
zero_extend{q,h}isi2. zero_extend{q,h}isi2.
......
...@@ -1942,14 +1942,14 @@ struct attribute_spec { ...@@ -1942,14 +1942,14 @@ struct attribute_spec {
bool affects_type_identity; bool affects_type_identity;
/* Function to handle this attribute. NODE points to the node to which /* 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 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 place; if a TYPE, a copy should be created. NAME is the canonicalized
attribute (possibly with leading or trailing __). ARGS is the TREE_LIST name of the attribute i.e. without any leading or trailing underscores.
of the arguments (which may be NULL). FLAGS gives further information ARGS is the TREE_LIST of the arguments (which may be NULL). FLAGS gives
about the context of the attribute. Afterwards, the attributes will further information about the context of the attribute. Afterwards, the
be added to the DECL_ATTRIBUTES or TYPE_ATTRIBUTES, as appropriate, attributes will be added to the DECL_ATTRIBUTES or TYPE_ATTRIBUTES, as
unless *NO_ADD_ATTRS is set to true (which should be done on error, appropriate, unless *NO_ADD_ATTRS is set to true (which should be done on
as well as in any other cases when the attributes should not be added error, as well as in any other cases when the attributes should not be
to the DECL or TYPE). Depending on FLAGS, any attributes to be added to the DECL or TYPE). Depending on FLAGS, any attributes to be
applied to another type or DECL later may be returned; applied to another type or DECL later may be returned;
otherwise the return value should be NULL_TREE. This pointer may be otherwise the return value should be NULL_TREE. This pointer may be
NULL if no special handling is required beyond the checks implied NULL if no special handling is required beyond the checks implied
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment