diff options
author | Catherine Moore <clm@cygnus.com> | 2000-05-05 18:16:49 +0000 |
---|---|---|
committer | Catherine Moore <clm@gcc.gnu.org> | 2000-05-05 14:16:49 -0400 |
commit | d20a70b4f6fd784f648d073eaa8434882384b14b (patch) | |
tree | b6c284cb2d81cf25aef09aa15080941d6970e2f6 /gcc/c-common.c | |
parent | 37ceff9dc30e39146fbce6a1cf8c5d1c8bc19b20 (diff) | |
download | gcc-d20a70b4f6fd784f648d073eaa8434882384b14b.zip gcc-d20a70b4f6fd784f648d073eaa8434882384b14b.tar.gz gcc-d20a70b4f6fd784f648d073eaa8434882384b14b.tar.bz2 |
c-common.c (decl_attributes): For TYPE_DECLs attach the attribute to the decl.
* c-common.c (decl_attributes): For TYPE_DECLs attach the
attribute to the decl.
* c-decl.c (pushdecl): Propagate the USED attribute to the
type copy.
From-SVN: r33716
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index b699405..30985b5 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -604,7 +604,10 @@ decl_attributes (node, attributes, prefix_attributes) case A_UNUSED: if (is_type) - TREE_USED (type) = 1; + if (decl) + TREE_USED (decl) = 1; + else + TREE_USED (type) = 1; else if (TREE_CODE (decl) == PARM_DECL || TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == FUNCTION_DECL |