aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-05-13 19:49:49 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-05-13 17:49:49 +0000
commita2e66caf57a55c157600620d0f258115f5c9788b (patch)
tree40fa23b3363a9b79f56fb950088ec6747490fff9
parentda405c74af0fdf19702bfc9e4d12356a940b30a2 (diff)
downloadgcc-a2e66caf57a55c157600620d0f258115f5c9788b.zip
gcc-a2e66caf57a55c157600620d0f258115f5c9788b.tar.gz
gcc-a2e66caf57a55c157600620d0f258115f5c9788b.tar.bz2
* decl.c (cp_finish_decl): Do not worry about used attribute.
From-SVN: r159372
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 42eb59d..39766ac 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 11fac71..05aff91 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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: