aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-03-31 22:16:39 +0000
committerRichard Stallman <rms@gnu.org>1993-03-31 22:16:39 +0000
commit0964e707091d014d8bc5d0206af31628c214fac6 (patch)
tree2c0d9b443f812bb11299162bc90c3de64de642b5 /gcc
parent78aadb3ae0aafdf8274df33a9e7b64451e316a20 (diff)
downloadgcc-0964e707091d014d8bc5d0206af31628c214fac6.zip
gcc-0964e707091d014d8bc5d0206af31628c214fac6.tar.gz
gcc-0964e707091d014d8bc5d0206af31628c214fac6.tar.bz2
(compile_file): Only call `*incomplete_decl_finalize_hook'
if the `decl' in question is a VAR_DECL. From-SVN: r3980
Diffstat (limited to 'gcc')
-rw-r--r--gcc/toplev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index b3c757a..fde442c 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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)