johannes 02/12/02 16:04:41
Modified: live/gcc3/gcc dbxout.c
Log:
Bug #: 3047765/3109827
Submitted by: dale
Reviewed by: matt
Fix the check for emitting initialized but unref'd vbls with -gused.
Revision Changes Path
1.36 +2 -1 src/live/gcc3/gcc/dbxout.c
Index: dbxout.c
===================================================================
RCS file: /cvs/Darwin/src/live/gcc3/gcc/dbxout.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- dbxout.c 2002/11/21 23:41:17 1.35
+++ dbxout.c 2002/12/03 00:04:41 1.36
@@ -2245,7 +2245,8 @@
{
tree t;
- if (!TREE_USED (decl) && !DECL_INITIAL (decl))
+ if (!TREE_USED (decl)
+ && (TREE_CODE (decl) != VAR_DECL || !DECL_INITIAL (decl)))
DBXOUT_DECR_NESTING_AND_RETURN (0);
/* We now have a used symbol. We need to generate the info for