diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-12 09:58:18 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-12 09:58:18 +0000 |
commit | 606b494c921cdec65e0e1674152da263f4b94760 (patch) | |
tree | 1ceebcb928abd0eff2f89a79f7f7fa861efccbc3 /gcc/cp/expr.c | |
parent | 8ae0275adaab33e9c31ce62ef1a7d575349915e3 (diff) | |
download | gcc-606b494c921cdec65e0e1674152da263f4b94760.tar.gz |
Remove old ABI support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r-- | gcc/cp/expr.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index 603984ad017..fc22460ff97 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; |