OSDN Git Service

(decl_attributes, case A_ALIGNED): Handle is_type case properly.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jul 1995 23:11:10 +0000 (23:11 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jul 1995 23:11:10 +0000 (23:11 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10146 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-common.c

index 1d26ebf..f2715b3 100644 (file)
@@ -516,7 +516,7 @@ decl_attributes (node, attributes, prefix_attributes)
            if (exact_log2 (align) == -1)
              error ("requested alignment is not a power of 2");
            else if (is_type)
-             TYPE_ALIGN (TREE_TYPE (decl)) = align;
+             TYPE_ALIGN (type) = align;
            else if (TREE_CODE (decl) != VAR_DECL
                     && TREE_CODE (decl) != FIELD_DECL)
              error_with_decl (decl,