Patchwork Use DECL_FILE_SCOPE_P in dbxout

login
register
mail settings
Submitter Richard Guenther
Date Sept. 27, 2010, 3:13 p.m.
Message ID <alpine.LNX.2.00.1009271712580.8982@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/65876/
State New
Headers show

Comments

Richard Guenther - Sept. 27, 2010, 3:13 p.m.
Bootstrapped and tested on x86_64-unknown-linux-gnu, committed.

Richard.

2010-09-27  Richard Guenther  <rguenther@suse.de>

	* dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.

Patch

Index: dbxout.c
===================================================================
--- dbxout.c	(revision 164647)
+++ dbxout.c	(working copy)
@@ -2822,7 +2822,7 @@  dbxout_symbol (tree decl, int local ATTR
 	  && 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)