summaryrefslogtreecommitdiffstats
path: root/gcc/config/darwin-c.c
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-16 02:08:11 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-16 02:08:11 +0000
commit799f877ece467fd36113dc6306a33e25f88f3750 (patch)
treee9a699fec7c15696fe1e831cc04c62ec3c6645e1 /gcc/config/darwin-c.c
parentb9d576f517471a92133a7192b1cda345b21898da (diff)
downloadppe42-gcc-799f877ece467fd36113dc6306a33e25f88f3750.tar.gz
ppe42-gcc-799f877ece467fd36113dc6306a33e25f88f3750.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107062 138bc75d-0d04-0410-961f-82ee72b054a4
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 738f07c81a7..893aaf7d7b8 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;
OpenPOWER on IntegriCloud