aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-06 20:45:11 +0000
committerRichard Stallman <rms@gnu.org>1992-07-06 20:45:11 +0000
commit9b4e97b0d01f1ddae5bbbace17eed0e9812f5b6b (patch)
tree77792b145b4c0a981cee4e5bf50bf3a253bf8b13 /gcc/c-common.c
parent8c334b8d4e19237793adee2b4d658d307635eee9 (diff)
downloadgcc-9b4e97b0d01f1ddae5bbbace17eed0e9812f5b6b.zip
gcc-9b4e97b0d01f1ddae5bbbace17eed0e9812f5b6b.tar.gz
gcc-9b4e97b0d01f1ddae5bbbace17eed0e9812f5b6b.tar.bz2
(decl_attributes): Don't set DECL_PACKED on VAR_DECL.
From-SVN: r1480
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 3cfb680..2714d67 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