aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-12-31 14:20:08 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-12-31 14:20:08 -0500
commitf843649d5cf8eaf595cc8ea008ccd1898b89dfd8 (patch)
tree28cade43f5cac8765a4c97d3aa4f734fcc7f82fa /gcc
parent33bc3ff583997c4fd0f4ee22b3a19c290cb3ceba (diff)
downloadgcc-f843649d5cf8eaf595cc8ea008ccd1898b89dfd8.zip
gcc-f843649d5cf8eaf595cc8ea008ccd1898b89dfd8.tar.gz
gcc-f843649d5cf8eaf595cc8ea008ccd1898b89dfd8.tar.bz2
(compile_file): DECL_REGISTER isn't defined for FUNCTION_DECL.
From-SVN: r10911
Diffstat (limited to 'gcc')
-rw-r--r--gcc/toplev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 6da56cd..37015b3 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. */