summaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-27 15:15:59 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-27 15:15:59 +0000
commita495b38afb8b73ffe3c952a3b55adadf833a0096 (patch)
treeb6e67bf245935763a746bdf8a544d5ab7c3120ec /gcc/dbxout.c
parent53459aa821af1c283bbc1a9c5c1ec47b2646ff9f (diff)
downloadgcc-a495b38afb8b73ffe3c952a3b55adadf833a0096.tar.gz
2010-09-27 Richard Guenther <rguenther@suse.de>
* dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164651 138bc75d-0d04-0410-961f-82ee72b054a4
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 0b4c050c056..572fa64eb8c 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)