diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-05-23 06:31:16 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-05-23 06:31:16 +0000 |
commit | 993894639ca5507037eb940b4fcb835bf71cbb7a (patch) | |
tree | a1c8b108b8722262d53fe8684341b03d0219e577 /gcc/cp | |
parent | 163d3408ea1695f830e3bc5944f358428bb75c10 (diff) | |
download | gcc-993894639ca5507037eb940b4fcb835bf71cbb7a.zip gcc-993894639ca5507037eb940b4fcb835bf71cbb7a.tar.gz gcc-993894639ca5507037eb940b4fcb835bf71cbb7a.tar.bz2 |
class.c (build_ctor_vtbl_group): Set inits.
* 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
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/class.c | 1 | ||||
-rw-r--r-- | gcc/cp/optimize.c | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5fa56d0..40e7175 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 3fcb0f4..e83c916 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -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))); diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index 1158f39..b7711d6 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -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 (); |