diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/darwin-c.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea6055b..c6210cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/darwin-c.c b/gcc/config/darwin-c.c index 805a824..045530d 100644 --- a/gcc/config/darwin-c.c +++ b/gcc/config/darwin-c.c @@ -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; |