aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-06-26 00:14:26 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-06-25 22:14:26 +0000
commit4d7d0451bcd5437c1a0c2c852784427e87297024 (patch)
tree6bb2629ee62f198c4d510aa1649411077fcadf74 /gcc/c-common.c
parent6322fdd83b824be16b3d492a5897246db2ac9efd (diff)
downloadgcc-4d7d0451bcd5437c1a0c2c852784427e87297024.zip
gcc-4d7d0451bcd5437c1a0c2c852784427e87297024.tar.gz
gcc-4d7d0451bcd5437c1a0c2c852784427e87297024.tar.bz2
c-common.c (handle_used_attribute): Use mark_referenced.
* c-common.c (handle_used_attribute): Use mark_referenced. * varasm.c (mark_referenced): Break out from ... (assemble_name): ... here. * tree.h (mark_referenced): Declare. From-SVN: r68500
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 8b555a8..43f9586 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -4812,8 +4812,10 @@ handle_used_attribute (tree *pnode, tree name, tree args ATTRIBUTE_UNUSED,
if (TREE_CODE (node) == FUNCTION_DECL
|| (TREE_CODE (node) == VAR_DECL && TREE_STATIC (node)))
- TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (node))
- = TREE_USED (node) = 1;
+ {
+ mark_referenced (DECL_ASSEMBLER_NAME (node));
+ TREE_USED (node) = 1;
+ }
else
{
warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name));