From: Richard Stallman Date: Wed, 31 Mar 1993 22:16:39 +0000 (+0000) Subject: (compile_file): Only call `*incomplete_decl_finalize_hook' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0964e707091d014d8bc5d0206af31628c214fac6;p=gcc.git (compile_file): Only call `*incomplete_decl_finalize_hook' if the `decl' in question is a VAR_DECL. From-SVN: r3980 --- 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)