From 0964e707091d014d8bc5d0206af31628c214fac6 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 31 Mar 1993 22:16:39 +0000 Subject: [PATCH] (compile_file): Only call `*incomplete_decl_finalize_hook' if the `decl' in question is a VAR_DECL. From-SVN: r3980 --- gcc/toplev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/toplev.c b/gcc/toplev.c index b3c757af042..fde442c55b0 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1875,7 +1875,7 @@ compile_file (name) for (i = 0; i < len; i++) { decl = vec[i]; - if (DECL_SIZE (decl) == 0) + if (TREE_CODE (decl) == VAR_DECL && DECL_SIZE (decl) == 0) (*incomplete_decl_finalize_hook) (decl); if (TREE_CODE (decl) == VAR_DECL && TREE_STATIC (decl) -- 2.30.2