aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/expr.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-02-12 09:58:18 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-02-12 09:58:18 +0000
commit1f84ec231e3abac2f8fc874a6231d337cd03897b (patch)
tree1ceebcb928abd0eff2f89a79f7f7fa861efccbc3 /gcc/cp/expr.c
parent11662aaaa54c005e951850b36f7c6b53f6c6d709 (diff)
downloadgcc-1f84ec231e3abac2f8fc874a6231d337cd03897b.zip
gcc-1f84ec231e3abac2f8fc874a6231d337cd03897b.tar.gz
gcc-1f84ec231e3abac2f8fc874a6231d337cd03897b.tar.bz2
Remove old ABI support.
From-SVN: r39599
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r--gcc/cp/expr.c14
1 files changed, 1 insertions, 13 deletions
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;