From: Richard Stallman Date: Mon, 6 Jul 1992 20:45:11 +0000 (+0000) Subject: (decl_attributes): Don't set DECL_PACKED on VAR_DECL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b4e97b0d01f1ddae5bbbace17eed0e9812f5b6b;p=gcc.git (decl_attributes): Don't set DECL_PACKED on VAR_DECL. From-SVN: r1480 --- diff --git a/gcc/c-common.c b/gcc/c-common.c index 3cfb680346e..2714d67bcbc 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -198,11 +198,8 @@ decl_attributes (decl, attributes) { if (TREE_CODE (decl) == FIELD_DECL) DECL_PACKED (decl) = 1; - else if (TREE_CODE (decl) == VAR_DECL) - { - DECL_PACKED (decl) = 1; - DECL_ALIGN (decl) = BITS_PER_UNIT; - } + /* We can't set DECL_PACKED for a VAR_DECL, because the bit is + used for TREE_REGDECL. It wouldn't mean anything anyway. */ } else if (TREE_VALUE (a) != 0 && TREE_CODE (TREE_VALUE (a)) == TREE_LIST