aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin-c.c
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2005-11-16 02:08:11 +0000
committerMike Stump <mrs@gcc.gnu.org>2005-11-16 02:08:11 +0000
commit988037306d78b6a4c12e5ed61fc023694ceb3857 (patch)
treee9a699fec7c15696fe1e831cc04c62ec3c6645e1 /gcc/config/darwin-c.c
parentcb110f3d8e3157cc18b48bb76abfcbd17dc4a560 (diff)
downloadgcc-988037306d78b6a4c12e5ed61fc023694ceb3857.zip
gcc-988037306d78b6a4c12e5ed61fc023694ceb3857.tar.gz
gcc-988037306d78b6a4c12e5ed61fc023694ceb3857.tar.bz2
c-decl.c (lookup_name_two): Add.
* c-decl.c (lookup_name_two): Add. * c-tree.h (lookup_name_two): Likewise. * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead. * config/darwin-c.c (darwin_pragma_unused): Likewise. cp: * name-lookup.c (lookup_name_two): Add. * name-lookup.h: Likewise. testsuite: * g++.old-deja/g++.mike/unused.C: Add. From-SVN: r107062
Diffstat (limited to 'gcc/config/darwin-c.c')
-rw-r--r--gcc/config/darwin-c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/darwin-c.c b/gcc/config/darwin-c.c
index 738f07c..893aaf7 100644
--- a/gcc/config/darwin-c.c
+++ b/gcc/config/darwin-c.c
@@ -141,7 +141,7 @@ darwin_pragma_unused (cpp_reader *pfile ATTRIBUTE_UNUSED)
tok = c_lex (&decl);
if (tok == CPP_NAME && decl)
{
- tree local = lookup_name (decl);
+ tree local = lookup_name_two (decl, 0);
if (local && (TREE_CODE (local) == PARM_DECL
|| TREE_CODE (local) == VAR_DECL))
TREE_USED (local) = 1;