]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* decl2.c (finish_static_data_member_decl): Don't set TREE_USED.
authorJason Merrill <jason@redhat.com>
Sun, 16 Aug 2009 17:42:48 +0000 (13:42 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 16 Aug 2009 17:42:48 +0000 (13:42 -0400)
From-SVN: r150806

gcc/cp/ChangeLog
gcc/cp/decl2.c

index e5ca35d90e57a187552ce8dce6b3d70068034b0b..9a694d922fa81084504fc950ca0c6025d9b41d84 100644 (file)
@@ -1,5 +1,7 @@
 2009-08-15  Jason Merrill  <jason@redhat.com>
 
+       * decl2.c (finish_static_data_member_decl): Don't set TREE_USED.
+
        * decl2.c (mark_used): It's ok to synthesize for default args now.
 
 2009-08-10  Jason Merrill  <jason@redhat.com>
index 4644427eb03056112b753ca3959894d2cb74ffe2..f78508b99c3ff28b49705ab7b1690f1b45bf0e70 100644 (file)
@@ -746,10 +746,7 @@ finish_static_data_member_decl (tree decl,
        }
       init = NULL_TREE;
     }
-  /* Force the compiler to know when an uninitialized static const
-     member is being used.  */
-  if (CP_TYPE_CONST_P (TREE_TYPE (decl)) && init == 0)
-    TREE_USED (decl) = 1;
+
   DECL_INITIAL (decl) = init;
   DECL_IN_AGGR_P (decl) = 1;