diff options
author | Richard Guenther <rguenther@suse.de> | 2010-09-27 15:15:59 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-09-27 15:15:59 +0000 |
commit | 1787f59e44205f742abeffc49c28fb31f72a2723 (patch) | |
tree | b6e67bf245935763a746bdf8a544d5ab7c3120ec /gcc | |
parent | 74164603a59a26946b24ed8f6b49354f00928908 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/dbxout.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 696361f..712dfaa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-09-27 Richard Guenther <rguenther@suse.de> + + * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P. + 2010-09-27 Jie Zhang <jie@codesourcery.com> * print-tree.c (print_node): Print in-constant-pool. 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) |