aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-01-01 16:15:08 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-01-01 16:15:08 -0500
commit54630035ff8efa09f5af7c68ea2942ca97e1cb00 (patch)
tree839e2b4ec896682f56af60dd8c811d74e9a47e23 /gcc/c-common.c
parented244fc2cd6a4e643b30e8e67617d94cb7034018 (diff)
downloadgcc-54630035ff8efa09f5af7c68ea2942ca97e1cb00.zip
gcc-54630035ff8efa09f5af7c68ea2942ca97e1cb00.tar.gz
gcc-54630035ff8efa09f5af7c68ea2942ca97e1cb00.tar.bz2
(decl_attributes): Fix default alignment: BIGGEST_ALIGNMENT is a
number of bits, not bytes. From-SVN: r10929
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 979f30b..ad61319 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -1,5 +1,5 @@
/* Subroutines shared by all languages that are variants of C.
- Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -510,7 +510,8 @@ decl_attributes (node, attributes, prefix_attributes)
case A_ALIGNED:
{
tree align_expr
- = args ? TREE_VALUE (args) : size_int (BIGGEST_ALIGNMENT);
+ = (args ? TREE_VALUE (args)
+ : size_int (BIGGEST_ALIGNMENT / BITS_PER_UNIT));
int align;
/* Strip any NOPs of any kind. */