OSDN Git Service

(compile_file): Only call `*incomplete_decl_finalize_hook'
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Mar 1993 22:16:39 +0000 (22:16 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Mar 1993 22:16:39 +0000 (22:16 +0000)
if the `decl' in question is a VAR_DECL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3980 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/toplev.c

index b3c757a..fde442c 100644 (file)
@@ -1875,7 +1875,7 @@ compile_file (name)
     for (i = 0; i < len; i++)
       {
        decl = vec[i];
-       if (DECL_SIZE (decl) == 0)
+       if (TREE_CODE (decl) == VAR_DECL && DECL_SIZE (decl) == 0)
          (*incomplete_decl_finalize_hook) (decl);
 
        if (TREE_CODE (decl) == VAR_DECL && TREE_STATIC (decl)