OSDN Git Service

* config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Apr 2003 18:06:38 +0000 (18:06 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Apr 2003 18:06:38 +0000 (18:06 +0000)
        not IDENTIFIER_LOCAL_VALUE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65470 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ea6055b..c6210cf 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 805a824..045530d 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;