aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/expr.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-04-13 21:16:42 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-04-13 21:16:42 +0000
commit530ec96d294a83afc075059b13eb72cc07d9465d (patch)
treec3d1036d74074e85d94f2d2cea5f24ae690d935a /gcc/cp/expr.c
parent2840aebf0851ea62baa82d4c45742e08d861acaa (diff)
downloadgcc-530ec96d294a83afc075059b13eb72cc07d9465d.zip
gcc-530ec96d294a83afc075059b13eb72cc07d9465d.tar.gz
gcc-530ec96d294a83afc075059b13eb72cc07d9465d.tar.bz2
cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
* cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove. (expand_ptremfunc_cst): Change prototype. (delta2_from_ptrmemfunc): Remove. * expr.c (cplus_expand_constant): Adjust call to expand_ptrmemfunc_cst. * typeck.c (build_ptrmemfunc1): Simplify. (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still results in a constant. (expand_ptrmemfunc_cst): Remove idx and delta2 parameters. (delta2_from_ptrmemfunc): Remove. (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst. From-SVN: r41341
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r--gcc/cp/expr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c
index 9a9eb86..6855160 100644
--- a/gcc/cp/expr.c
+++ b/gcc/cp/expr.c
@@ -60,9 +60,10 @@ cplus_expand_constant (cst)
}
else
{
- tree delta, idx, pfn, delta2;
+ tree delta;
+ tree pfn;
- expand_ptrmemfunc_cst (cst, &delta, &idx, &pfn, &delta2);
+ expand_ptrmemfunc_cst (cst, &delta, &pfn);
cst = build_ptrmemfunc1 (type, delta, pfn);
}
}