diff options
author | Mike Stump <mrs@apple.com> | 2005-11-16 02:08:11 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2005-11-16 02:08:11 +0000 |
commit | 988037306d78b6a4c12e5ed61fc023694ceb3857 (patch) | |
tree | e9a699fec7c15696fe1e831cc04c62ec3c6645e1 /gcc/c-common.c | |
parent | cb110f3d8e3157cc18b48bb76abfcbd17dc4a560 (diff) | |
download | gcc-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/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 4501841..feb87ef 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"); |