Commit 9b4e97b0 by Richard Stallman

(decl_attributes): Don't set DECL_PACKED on VAR_DECL.

From-SVN: r1480
parent 8c334b8d
...@@ -198,11 +198,8 @@ decl_attributes (decl, attributes) ...@@ -198,11 +198,8 @@ 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) /* We can't set DECL_PACKED for a VAR_DECL, because the bit is
{ used for TREE_REGDECL. It wouldn't mean anything anyway. */
DECL_PACKED (decl) = 1;
DECL_ALIGN (decl) = BITS_PER_UNIT;
}
} }
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
......
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