Commit 43451169 by Zack Weinberg Committed by Zack Weinberg

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
parent 6df0c1b4
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment