aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-04-20 16:09:27 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-04-20 16:09:27 +0000
commit06a50fff5b99c7ef17476befe92888ee7f4e8a08 (patch)
tree36bd10e47a2198434af77623ce8e77ff074823a0 /gcc/c-common.c
parentba2b25ecaca7b61c71bf5abc3eac2a7e85a6a1f5 (diff)
downloadgcc-06a50fff5b99c7ef17476befe92888ee7f4e8a08.zip
gcc-06a50fff5b99c7ef17476befe92888ee7f4e8a08.tar.gz
gcc-06a50fff5b99c7ef17476befe92888ee7f4e8a08.tar.bz2
c-common.c (decl_attributes): Set TREE_USED on the object pointed to.
* c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the object pointed to. From-SVN: r33284
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 386721a..32b2ede 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -981,6 +981,8 @@ decl_attributes (node, attributes, prefix_attributes)
break;
}
id = get_identifier (TREE_STRING_POINTER (id));
+ /* This counts as a use of the object pointed to. */
+ TREE_USED (id) = 1;
if (TREE_CODE (decl) == FUNCTION_DECL)
DECL_INITIAL (decl) = error_mark_node;