(incomplete_decl_finalize_hook): New variable.

(compile_file): Call incomplete_decl_finalize_hook.

From-SVN: r3824
This commit is contained in:
Richard Stallman 1993-03-22 07:04:44 +00:00
parent b4892310d5
commit 2b59952750

View File

@ -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))
{