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:
parent
6df0c1b460
commit
43451169f8
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user