projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c334b8
)
(decl_attributes): Don't set DECL_PACKED on VAR_DECL.
author
Richard Stallman
<rms@gnu.org>
Mon, 6 Jul 1992 20:45:11 +0000
(20:45 +0000)
committer
Richard Stallman
<rms@gnu.org>
Mon, 6 Jul 1992 20:45:11 +0000
(20:45 +0000)
From-SVN: r1480
gcc/c-common.c
patch
|
blob
|
history
diff --git
a/gcc/c-common.c
b/gcc/c-common.c
index 3cfb680346e2f17bcb28bf89d7c923b4533de646..2714d67bcbc9aa05d029287ecc2ad76d8a450042 100644
(file)
--- 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