Commit 2b599527 by Richard Stallman

(incomplete_decl_finalize_hook): New variable.

(compile_file): Call incomplete_decl_finalize_hook.

From-SVN: r3824
parent b4892310
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment