(decl_attributes): Fix default alignment: BIGGEST_ALIGNMENT is a
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 1 Jan 1996 21:15:08 +0000 (16:15 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 1 Jan 1996 21:15:08 +0000 (16:15 -0500)
number of bits, not bytes.

From-SVN: r10929

gcc/c-common.c

index 979f30b055334d2f444e1d099b9e4f54c072d8ba..ad613196b198f58ba63bf28476dd0d8e4086cbd7 100644 (file)
@@ -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.  */