aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn Hassey <hassey@gnu.org>1993-02-08 15:17:53 +0000
committerJohn Hassey <hassey@gnu.org>1993-02-08 15:17:53 +0000
commitf2dabd38de8d7ea3573b7e16aaa98131bb4e7886 (patch)
tree1eebf565f27779f3989fa233e6fd2de01889f73b /gcc
parent74c475adaef6ea603b3dd5cea8ae5423649d285f (diff)
downloadgcc-f2dabd38de8d7ea3573b7e16aaa98131bb4e7886.zip
gcc-f2dabd38de8d7ea3573b7e16aaa98131bb4e7886.tar.gz
gcc-f2dabd38de8d7ea3573b7e16aaa98131bb4e7886.tar.bz2
(compile_file): Don't flag global register variables as unused.
From-SVN: r3442
Diffstat (limited to 'gcc')
-rw-r--r--gcc/toplev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index b2b6db8..263ff67 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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. */