aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-03-22 07:04:44 +0000
committerRichard Stallman <rms@gnu.org>1993-03-22 07:04:44 +0000
commit2b5995275004a0099be1281557f0c13810f18734 (patch)
tree301e556dd5a03d73ec4fe2534b346f5a438290cc /gcc
parentb4892310d56ec029bae5195e1f4c385d598303cb (diff)
downloadgcc-2b5995275004a0099be1281557f0c13810f18734.zip
gcc-2b5995275004a0099be1281557f0c13810f18734.tar.gz
gcc-2b5995275004a0099be1281557f0c13810f18734.tar.bz2
(incomplete_decl_finalize_hook): New variable.
(compile_file): Call incomplete_decl_finalize_hook. From-SVN: r3824
Diffstat (limited to 'gcc')
-rw-r--r--gcc/toplev.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 8d3d70b..55cb881 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))
{