class.c (build_ctor_vtbl_group): Set inits.
authorMark Mitchell <mark@codesourcery.com>
Tue, 23 May 2000 06:31:16 +0000 (06:31 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 23 May 2000 06:31:16 +0000 (06:31 +0000)
* class.c (build_ctor_vtbl_group): Set inits.
* optimize.c (maybe_clone_body): Set DECL_INLINE and
DECL_THIS_INLINE appropriately for clones.

From-SVN: r34101

gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/optimize.c

index 5fa56d0..40e7175 100644 (file)
@@ -1,5 +1,9 @@
 2000-05-22  Mark Mitchell  <mark@codesourcery.com>
 
+       * class.c (build_ctor_vtbl_group): Set inits.
+       * optimize.c (maybe_clone_body): Set DECL_INLINE and
+       DECL_THIS_INLINE appropriately for clones.
+
        * cp-tree.h (IDENTIFIER_TYPENAME_P): Use a flag, not strncmp.
        (DECL_CONV_FN_P): Simplify.
        (DECL_OPERATOR): Remove.
index 3fcb0f4..e83c916 100644 (file)
@@ -6666,6 +6666,7 @@ build_ctor_vtbl_group (binfo, t)
   list = build_tree_list (vtbl, NULL_TREE);
   accumulate_vtbl_inits (binfo, TYPE_BINFO (TREE_TYPE (binfo)),
                         binfo, t, list);
+  inits = TREE_VALUE (list);
 
   /* Figure out the type of the construction vtable.  */
   type = build_index_type (size_int (list_length (inits)));
index 1158f39..b7711d6 100644 (file)
@@ -900,6 +900,8 @@ maybe_clone_body (fn)
       /* Update CLONE's source position information to match FN's.  */
       DECL_SOURCE_FILE (clone) = DECL_SOURCE_FILE (fn);
       DECL_SOURCE_LINE (clone) = DECL_SOURCE_LINE (fn);
+      DECL_INLINE (clone) = DECL_INLINE (fn);
+      DECL_THIS_INLINE (clone) = DECL_THIS_INLINE (fn);
 
       /* Start processing the function.  */
       push_to_top_level ();