From: Richard Kenner Date: Sun, 31 Dec 1995 19:20:08 +0000 (-0500) Subject: (compile_file): DECL_REGISTER isn't defined for FUNCTION_DECL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f843649d5cf8eaf595cc8ea008ccd1898b89dfd8;p=gcc.git (compile_file): DECL_REGISTER isn't defined for FUNCTION_DECL. From-SVN: r10911 --- 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. */