Commit 06aa52de by Richard Kenner

(decl_attributes, case A_ALIGNED): Handle is_type case properly.

From-SVN: r10146
parent 410d3f5d
...@@ -516,7 +516,7 @@ decl_attributes (node, attributes, prefix_attributes) ...@@ -516,7 +516,7 @@ decl_attributes (node, attributes, prefix_attributes)
if (exact_log2 (align) == -1) if (exact_log2 (align) == -1)
error ("requested alignment is not a power of 2"); error ("requested alignment is not a power of 2");
else if (is_type) else if (is_type)
TYPE_ALIGN (TREE_TYPE (decl)) = align; TYPE_ALIGN (type) = align;
else if (TREE_CODE (decl) != VAR_DECL else if (TREE_CODE (decl) != VAR_DECL
&& TREE_CODE (decl) != FIELD_DECL) && TREE_CODE (decl) != FIELD_DECL)
error_with_decl (decl, error_with_decl (decl,
......
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