This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: (C++) cp/class.c:2665: too few arguments to function `build_vtable_entry


Gerald Pfeifer wrote:
> is it possible that the bootstrap error I am seeing on FreeBSD 3.3 is
> caused by the the following patch?

> /sw/test/gcc/gcc/gcc/cp/class.c: In function `build_vtbl_initializer':
> /sw/test/gcc/gcc/gcc/cp/class.c:2665: too few arguments to function `build_vtable_entry'

Mark and I have tangled each other up with two patches to do
with vtables (build_vtable_entry's prototype changed).

I've installed this obvious patch, which gets us into bootstrap land.

nathan
-- 
Dr Nathan Sidwell :: sidwell@codesourcery.com
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk
2000-01-29  Nathan Sidwell  <sidwell@codesourcery.com>

	* class.c (build_vtbl_initializer): Add argument to
	build_vtable_entry call.

Index: cp/class.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/class.c,v
retrieving revision 1.248
diff -c -3 -p -r1.248 class.c
*** class.c	2000/01/29 03:59:09	1.248
--- class.c	2000/01/29 15:42:35
*************** build_vtbl_initializer (binfo, t)
*** 2662,2668 ****
              decl = integer_zero_node;
            decl = build1 (NOP_EXPR, vfunc_ptr_type_node, decl);
            TREE_CONSTANT (decl) = 1;
!           decl = build_vtable_entry (integer_zero_node, decl);
            inits = tree_cons (NULL_TREE, decl, inits);
            
            v = TREE_CHAIN (v);
--- 2662,2669 ----
              decl = integer_zero_node;
            decl = build1 (NOP_EXPR, vfunc_ptr_type_node, decl);
            TREE_CONSTANT (decl) = 1;
!           decl = build_vtable_entry (integer_zero_node, integer_zero_node,
!                                      decl);
            inits = tree_cons (NULL_TREE, decl, inits);
            
            v = TREE_CHAIN (v);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]