From f843649d5cf8eaf595cc8ea008ccd1898b89dfd8 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 31 Dec 1995 14:20:08 -0500 Subject: [PATCH] (compile_file): DECL_REGISTER isn't defined for FUNCTION_DECL. From-SVN: r10911 --- gcc/toplev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/toplev.c b/gcc/toplev.c index 6da56cd17fc..37015b399f1 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2370,7 +2370,7 @@ compile_file (name) && ! DECL_EXTERNAL (decl) && ! TREE_PUBLIC (decl) && ! TREE_USED (decl) - && ! DECL_REGISTER (decl) + && (TREE_CODE (decl) == FUNCTION_DECL || ! DECL_REGISTER (decl)) /* The TREE_USED bit for file-scope decls is kept in the identifier, to handle multiple external decls in different scopes. */ -- 2.30.2