Commit eed32833 by Richard Kenner

(decl_attributes): Handle prefix and suffix attributes the same way.

From-SVN: r9152
parent ee7d912e
...@@ -211,15 +211,7 @@ decl_attributes (decl, attributes, prefix_attributes) ...@@ -211,15 +211,7 @@ decl_attributes (decl, attributes, prefix_attributes)
tree a, name, args, type; tree a, name, args, type;
type = TREE_TYPE (decl); type = TREE_TYPE (decl);
attributes = chainon (prefix_attributes, attributes);
for (a = prefix_attributes; a; a = TREE_CHAIN (a))
if (!(name = TREE_VALUE (a)))
continue;
else if (valid_machine_attribute (name, decl, type))
;
else
warning ("`%s' attribute directive ignored",
IDENTIFIER_POINTER (name));
for (a = attributes; a; a = TREE_CHAIN (a)) for (a = attributes; a; a = TREE_CHAIN (a))
if (!(name = TREE_VALUE (a))) if (!(name = TREE_VALUE (a)))
......
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