Use DECL_FILE_SCOPE_P in dbxout

Submitted by Richard Guenther on Sept. 27, 2010, 3:13 p.m.

Details

Message ID alpine.LNX.2.00.1009271712580.8982@zhemvz.fhfr.qr
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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)