(incomplete_decl_finalize_hook): New variable.
authorRichard Stallman <rms@gnu.org>
Mon, 22 Mar 1993 07:04:44 +0000 (07:04 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 22 Mar 1993 07:04:44 +0000 (07:04 +0000)
(compile_file): Call incomplete_decl_finalize_hook.

From-SVN: r3824

gcc/toplev.c

index 8d3d70b..55cb881 100644 (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))
          {