This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++ patch] remove unreachable code
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Jul 2004 09:05:35 +0100
- Subject: [C++ patch] remove unreachable code
- Organization: Codesourcery LLC
Hi,
this bit of code is bogus. Fortunately it was unreachable, now it's
gone.
built & tested on i686-pc-linux-gnu, installed.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
* pt.c (tsubst) <TREE_BINFO case>: We should never get here.
Index: cp/pt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/pt.c,v
retrieving revision 1.885
diff -c -3 -p -r1.885 pt.c
*** cp/pt.c 14 Jul 2004 15:34:30 -0000 1.885
--- cp/pt.c 15 Jul 2004 17:33:43 -0000
*************** tsubst (tree t, tree args, tsubst_flags_
*** 6891,6915 ****
}
case TREE_BINFO:
! /* A binfo node. We always need to make a copy, of the node
! itself and of its BINFO_BASE_BINFOS. */
! my_friendly_assert (type, 20040628);
!
! t = copy_node (t);
!
! /* Make sure type isn't a typedef copy. */
! type = BINFO_TYPE (TYPE_BINFO (type));
!
! TREE_TYPE (t) = complete_type (type);
! if (IS_AGGR_TYPE (type))
! {
! BINFO_VTABLE (t) = BINFO_VTABLE (TYPE_BINFO (type));
! BINFO_VIRTUALS (t) = BINFO_VIRTUALS (TYPE_BINFO (type));
! if (BINFO_BASE_BINFOS (TYPE_BINFO (type)) != NULL_TREE)
! BINFO_BASE_BINFOS (t)
! = copy_node (BINFO_BASE_BINFOS (TYPE_BINFO (type)));
! }
! return t;
case TREE_VEC:
/* A vector of template arguments. */
--- 6891,6898 ----
}
case TREE_BINFO:
! /* We should never be tsubsting a binfo. */
! abort ();
case TREE_VEC:
/* A vector of template arguments. */