From: Richard Stallman Date: Mon, 22 Mar 1993 07:04:44 +0000 (+0000) Subject: (incomplete_decl_finalize_hook): New variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b5995275004a0099be1281557f0c13810f18734;p=gcc.git (incomplete_decl_finalize_hook): New variable. (compile_file): Call incomplete_decl_finalize_hook. From-SVN: r3824 --- diff --git a/gcc/toplev.c b/gcc/toplev.c index 8d3d70be81b..55cb88185ae 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -218,6 +218,11 @@ char *(*decl_printable_name) (); struct rtx_def *(*lang_expand_expr) (); +/* Pointer to function to finish handling an incomplete decl at the + end of compilation. */ + +void (*incomplete_decl_finalize_hook) () = 0; + /* Nonzero if generating code to do profiling. */ int profile_flag = 0; @@ -1838,6 +1843,9 @@ compile_file (name) for (i = 0; i < len; i++) { decl = vec[i]; + if (DECL_SIZE (decl) == 0) + (*incomplete_decl_finalize_hook) (decl); + if (TREE_CODE (decl) == VAR_DECL && TREE_STATIC (decl) && ! TREE_ASM_WRITTEN (decl)) {