length of the TYPE_BINFO vector.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19850
138bc75d-0d04-0410-961f-
82ee72b054a4
+Mon May 18 12:07:37 1998 Richard Earnshaw (rearnsha@arm.com)
+
+ * stor-layout.c (layout_record): Fix off-by-one error when checking
+ length of the TYPE_BINFO vector.
+
Mon May 18 10:59:23 1998 Nick Clifton <nickc@cygnus.com>
* dbxout.c (dbxout_parms): Use TREE_ARG to compute the type of a
/* Record the un-rounded size in the binfo node. But first we check
the size of TYPE_BINFO to make sure that BINFO_SIZE is available. */
- if (TYPE_BINFO (rec) && TREE_VEC_LENGTH (TYPE_BINFO (rec)) >= 6)
+ if (TYPE_BINFO (rec) && TREE_VEC_LENGTH (TYPE_BINFO (rec)) > 6)
TYPE_BINFO_SIZE (rec) = TYPE_SIZE (rec);
#ifdef ROUND_TYPE_SIZE