Commit f3ee8ad1 by Richard Stallman

(decl_attributes): For `packed' on VAR_DECL, set DECL_PACKED and DECL_ALIGN.

From-SVN: r1354
parent 20912ad0
...@@ -198,10 +198,15 @@ decl_attributes (decl, attributes) ...@@ -198,10 +198,15 @@ decl_attributes (decl, attributes)
{ {
if (TREE_CODE (decl) == FIELD_DECL) if (TREE_CODE (decl) == FIELD_DECL)
DECL_PACKED (decl) = 1; DECL_PACKED (decl) = 1;
else if (TREE_CODE (decl) == VAR_DECL)
{
DECL_PACKED (decl) = 1;
DECL_ALIGN (decl) = BITS_PER_UNION;
}
} }
else if (TREE_VALUE (a) != 0 else if (TREE_VALUE (a) != 0
&& TREE_CODE (TREE_VALUE (a)) == TREE_LIST && TREE_CODE (TREE_VALUE (a)) == TREE_LIST
&& TREE_PURPOSE (TREE_VALUE (a)) == get_identifier ("mode")) && TREE_PURPOSE (TREE_VALUE (a)) == get_identifier ("mode"))
{ {
int i; int i;
char *specified_name char *specified_name
......
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