aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-09-27 15:15:59 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-09-27 15:15:59 +0000
commit1787f59e44205f742abeffc49c28fb31f72a2723 (patch)
treeb6e67bf245935763a746bdf8a544d5ab7c3120ec /gcc/dbxout.c
parent74164603a59a26946b24ed8f6b49354f00928908 (diff)
downloadgcc-1787f59e44205f742abeffc49c28fb31f72a2723.zip
gcc-1787f59e44205f742abeffc49c28fb31f72a2723.tar.gz
gcc-1787f59e44205f742abeffc49c28fb31f72a2723.tar.bz2
dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
2010-09-27 Richard Guenther <rguenther@suse.de> * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P. From-SVN: r164651
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 0b4c050..572fa64 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -2822,7 +2822,7 @@ dbxout_symbol (tree decl, int local ATTRIBUTE_UNUSED)
&& DECL_INITIAL (decl) != 0
&& host_integerp (DECL_INITIAL (decl), 0)
&& ! TREE_ASM_WRITTEN (decl)
- && (DECL_CONTEXT (decl) == NULL_TREE
+ && (DECL_FILE_SCOPE_P (decl)
|| TREE_CODE (DECL_CONTEXT (decl)) == BLOCK
|| TREE_CODE (DECL_CONTEXT (decl)) == NAMESPACE_DECL)
&& TREE_PUBLIC (decl) == 0)