Commit a2e66caf by Jan Hubicka Committed by Jan Hubicka

* decl.c (cp_finish_decl): Do not worry about used attribute.

From-SVN: r159372
parent da405c74
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> 2010-05-12 Jason Merrill <jason@redhat.com>
* typeck.c (build_array_ref): Take complain parm. * typeck.c (build_array_ref): Take complain parm.
......
...@@ -6022,10 +6022,6 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p, ...@@ -6022,10 +6022,6 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
if (was_readonly) if (was_readonly)
TREE_READONLY (decl) = 1; 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: /* Returns a declaration for a VAR_DECL as if:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment