aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index 17a301c..a8693f9 100644
--- a/gcc/c-semantics.c
+++ b/gcc/c-semantics.c
@@ -389,6 +389,8 @@ genrtl_decl_stmt (tree t)
else if (TREE_CODE (decl) == LABEL_DECL
&& C_DECLARED_LABEL_FLAG (decl))
declare_nonlocal_label (decl);
+ else if (TREE_CODE (decl) == TYPE_DECL)
+ force_type_save_exprs (TREE_TYPE (decl));
else if (lang_expand_decl_stmt)
(*lang_expand_decl_stmt) (t);
}