aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2005-11-16 02:08:11 +0000
committerMike Stump <mrs@apple.com>2005-11-16 02:08:11 +0000
commit0b1fb59036b70c16d05beebc89972b6bad30e2a4 (patch)
treee9a699fec7c15696fe1e831cc04c62ec3c6645e1 /gcc/c-common.c
parent784ed3711b9a163bfbb41b73f7f7efa61620f60d (diff)
* 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: https://gcc.gnu.org/svn/gcc/trunk@107062 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 45018411096..feb87ef523a 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -5464,7 +5464,7 @@ handle_cleanup_attribute (tree *node, tree name, tree args,
*no_add_attrs = true;
return NULL_TREE;
}
- cleanup_decl = lookup_name (cleanup_id);
+ cleanup_decl = lookup_name_two (cleanup_id, 0);
if (!cleanup_decl || TREE_CODE (cleanup_decl) != FUNCTION_DECL)
{
error ("cleanup argument not a function");