From 1f84ec231e3abac2f8fc874a6231d337cd03897b Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 12 Feb 2001 09:58:18 +0000 Subject: Remove old ABI support. From-SVN: r39599 --- gcc/cp/expr.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'gcc/cp/expr.c') diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index 603984a..fc22460 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -56,18 +56,6 @@ cplus_expand_constant (cst) { /* Find the offset for the field. */ tree offset = byte_position (member); - - if (flag_new_abi) - /* Under the new ABI, we use -1 to represent the NULL - pointer; non-NULL values simply contain the offset of - the data member. */ - ; - else - /* We offset all pointer to data members by 1 so that we - can distinguish between a null pointer to data member - and the first data member of a structure. */ - offset = size_binop (PLUS_EXPR, offset, size_one_node); - cst = fold (build1 (NOP_EXPR, type, offset)); } else @@ -75,7 +63,7 @@ cplus_expand_constant (cst) tree delta, idx, pfn, delta2; expand_ptrmemfunc_cst (cst, &delta, &idx, &pfn, &delta2); - cst = build_ptrmemfunc1 (type, delta, idx, pfn, delta2); + cst = build_ptrmemfunc1 (type, delta, pfn); } } break; -- cgit v1.1