This is the mail archive of the gcc-patches@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]

C++ PATCH: typo in finish_struct_1



This fixes the problem with Kenner's recent change to finish_struct_1:

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2000-03-26  Mark Mitchell  <mark@codesourcery.com>

	* class.c (finish_struct_1): Fix typo in this change:
	
	Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

Index: class.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/class.c,v
retrieving revision 1.279
diff -c -p -r1.279 class.c
*** class.c	2000/03/25 18:34:11	1.279
--- class.c	2000/03/26 18:53:48
*************** finish_struct_1 (t)
*** 5262,5275 ****
    if (vfield != NULL_TREE
        && DECL_FIELD_CONTEXT (vfield) != t)
      {
        vfield = copy_node (vfield);
        copy_lang_decl (vfield);
  
        DECL_FIELD_CONTEXT (vfield) = t;
        DECL_FIELD_OFFSET (vfield)
  	= size_binop (PLUS_EXPR,
! 		      BINFO_OFFSET (get_binfo (DECL_FIELD_CONTEXT (vfield),
! 					       t, 0)),
  		      DECL_FIELD_OFFSET (vfield));
        TYPE_VFIELD (t) = vfield;
      }
--- 5268,5282 ----
    if (vfield != NULL_TREE
        && DECL_FIELD_CONTEXT (vfield) != t)
      {
+       tree binfo = get_binfo (DECL_FIELD_CONTEXT (vfield), t, 0);
+ 
        vfield = copy_node (vfield);
        copy_lang_decl (vfield);
  
        DECL_FIELD_CONTEXT (vfield) = t;
        DECL_FIELD_OFFSET (vfield)
  	= size_binop (PLUS_EXPR,
! 		      BINFO_OFFSET (binfo),
  		      DECL_FIELD_OFFSET (vfield));
        TYPE_VFIELD (t) = vfield;
      }

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