diff options
author | Zack Weinberg <zack@codesourcery.com> | 2003-04-11 18:06:38 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-04-11 18:06:38 +0000 |
commit | 43451169f8ab49a8c1c2b521eb81657c8cf23c35 (patch) | |
tree | 6f961733e541fe6548becb92c2103159978cbee8 /gcc | |
parent | 6df0c1b4608fd21d9849c2b7fcb6f9b3aeefb193 (diff) | |
download | gcc-43451169f8ab49a8c1c2b521eb81657c8cf23c35.zip gcc-43451169f8ab49a8c1c2b521eb81657c8cf23c35.tar.gz gcc-43451169f8ab49a8c1c2b521eb81657c8cf23c35.tar.bz2 |
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
Diffstat (limited to 'gcc')
-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; |