diff options
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 |
