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
This commit is contained in:
Richard Guenther 2010-09-27 15:15:59 +00:00 committed by Richard Biener
parent 74164603a5
commit 1787f59e44
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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)