OSDN Git Service

(compile_file): Don't flag global register variables as unused.
authorhassey <hassey@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Feb 1993 15:17:53 +0000 (15:17 +0000)
committerhassey <hassey@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Feb 1993 15:17:53 +0000 (15:17 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3442 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/toplev.c

index b2b6db8..263ff67 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.  */