(compile_file): Don't flag global register variables as unused.
authorJohn Hassey <hassey@gnu.org>
Mon, 8 Feb 1993 15:17:53 +0000 (15:17 +0000)
committerJohn Hassey <hassey@gnu.org>
Mon, 8 Feb 1993 15:17:53 +0000 (15:17 +0000)
From-SVN: r3442

gcc/toplev.c

index b2b6db831ee8f8b4ab459a66054c523689422746..263ff676b7a6ef9a76860101774e0a7c828b171e 100644 (file)
@@ -1886,6 +1886,7 @@ compile_file (name)
            && ! TREE_PUBLIC (decl)
            && ! TREE_USED (decl)
            && ! DECL_INLINE (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.  */