OSDN Git Service

* decl.c (cp_finish_decl): Do not worry about used attribute.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 May 2010 17:49:49 +0000 (17:49 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 May 2010 17:49:49 +0000 (17:49 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159372 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index 42eb59d..39766ac 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-13  Jan Hubicka  <jh@suse.cz>
+
+       * decl.c (cp_finish_decl): Do not worry about used attribute.
+
 2010-05-12  Jason Merrill  <jason@redhat.com>
 
        * typeck.c (build_array_ref): Take complain parm.
index 11fac71..05aff91 100644 (file)
@@ -6022,10 +6022,6 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
 
   if (was_readonly)
     TREE_READONLY (decl) = 1;
-
-  /* If this was marked 'used', be sure it will be output.  */
-  if (lookup_attribute ("used", DECL_ATTRIBUTES (decl)))
-    mark_decl_referenced (decl);
 }
 
 /* Returns a declaration for a VAR_DECL as if: