diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-16 02:08:11 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-16 02:08:11 +0000 |
commit | 799f877ece467fd36113dc6306a33e25f88f3750 (patch) | |
tree | e9a699fec7c15696fe1e831cc04c62ec3c6645e1 /gcc/c-common.c | |
parent | b9d576f517471a92133a7192b1cda345b21898da (diff) | |
download | gcc-799f877ece467fd36113dc6306a33e25f88f3750.tar.gz |
* 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/c-common.c')
-rw-r--r-- | gcc/c-common.c | 2 |
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"); |