darwin-c.c (darwin_pragma_unused): Use lookup_name, not IDENTIFIER_LOCAL_VALUE.

* config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
        not IDENTIFIER_LOCAL_VALUE.

From-SVN: r65470
This commit is contained in:
Zack Weinberg 2003-04-11 18:06:38 +00:00 committed by Zack Weinberg
parent 6df0c1b460
commit 43451169f8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-04-11 Zack Weinberg <zack@codesourcery.com>
* config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
not IDENTIFIER_LOCAL_VALUE.
2003-04-11 Richard Henderson <rth@redhat.com>
PR c/10201

View File

@ -136,7 +136,7 @@ darwin_pragma_unused (pfile)
tok = c_lex (&decl);
if (tok == CPP_NAME && decl)
{
tree local = IDENTIFIER_LOCAL_VALUE (decl);
tree local = lookup_name (decl);
if (local && (TREE_CODE (local) == PARM_DECL
|| TREE_CODE (local) == VAR_DECL))
TREE_USED (local) = 1;