]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
darwin-c.c (darwin_pragma_unused): Use lookup_name, not IDENTIFIER_LOCAL_VALUE.
authorZack Weinberg <zack@codesourcery.com>
Fri, 11 Apr 2003 18:06:38 +0000 (18:06 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 11 Apr 2003 18:06:38 +0000 (18:06 +0000)
        * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
        not IDENTIFIER_LOCAL_VALUE.

From-SVN: r65470

gcc/ChangeLog
gcc/config/darwin-c.c

index ea6055b1a446480a33caa82f6f41480e3b98a44e..c6210cfc806a6ef4ab03c04835cf80e88a9d1bd2 100644 (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
index 805a82486a283fb914e6404f425df461bd0f4c19..045530d7b5b4e13436aef39dfc82daf587f9f02f 100644 (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;