From 06aa52de3cf82005be7339f00befa978f9990e22 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 18 Jul 1995 19:11:10 -0400 Subject: [PATCH] (decl_attributes, case A_ALIGNED): Handle is_type case properly. From-SVN: r10146 --- gcc/c-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-common.c b/gcc/c-common.c index 1d26ebfa9fa..f2715b3d2ba 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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, -- 2.30.2