aboutsummaryrefslogtreecommitdiff
path: root/gcc/attribs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/attribs.c')
-rw-r--r--gcc/attribs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c
index 9a88621..e66349a 100644
--- a/gcc/attribs.c
+++ b/gcc/attribs.c
@@ -553,7 +553,7 @@ decl_attributes (tree *node, tree attributes, int flags)
/* Layout the decl in case anything changed. */
if (spec->type_required && DECL_P (*node)
- && (TREE_CODE (*node) == VAR_DECL
+ && (VAR_P (*node)
|| TREE_CODE (*node) == PARM_DECL
|| TREE_CODE (*node) == RESULT_DECL))
relayout_decl (*node);