aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.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/c-decl.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/c-decl.c')
-rw-r--r--gcc/c-decl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 003b813..99e91c0 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2671,6 +2671,15 @@ lookup_name (tree name)
return 0;
}
+/* Similar to `lookup_name' for the benefit of common code and the C++
+ front end. */
+
+tree
+lookup_name_two (tree name, int ARG_UNUSED (prefer_type))
+{
+ return lookup_name (name);
+}
+
/* Similar to `lookup_name' but look only at the indicated scope. */
static tree