From 488b1f4fa4aa3ad853a37ad63183e923ad666647 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 31 Mar 1993 22:18:57 +0000 Subject: [PATCH] (compile_file): Call incomplete_decl_finalize_hook only if nonzero. From-SVN: r3981 --- gcc/toplev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/toplev.c b/gcc/toplev.c index fde442c55b0..89ded122fb5 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1875,7 +1875,8 @@ compile_file (name) for (i = 0; i < len; i++) { decl = vec[i]; - if (TREE_CODE (decl) == VAR_DECL && DECL_SIZE (decl) == 0) + if (TREE_CODE (decl) == VAR_DECL && DECL_SIZE (decl) == 0 + && incomplete_decl_finalize_hook != 0) (*incomplete_decl_finalize_hook) (decl); if (TREE_CODE (decl) == VAR_DECL && TREE_STATIC (decl) -- 2.30.2