diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-23 06:31:16 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-23 06:31:16 +0000 |
commit | 4e033a3bf6b1faebf6ccfa55a22e34314f45183c (patch) | |
tree | a1c8b108b8722262d53fe8684341b03d0219e577 /gcc/cp | |
parent | d15fb4cef31c3ae9febb2c1c26e22b9f1b15f948 (diff) | |
download | ppe42-gcc-4e033a3bf6b1faebf6ccfa55a22e34314f45183c.tar.gz ppe42-gcc-4e033a3bf6b1faebf6ccfa55a22e34314f45183c.zip |
* class.c (build_ctor_vtbl_group): Set inits.
* optimize.c (maybe_clone_body): Set DECL_INLINE and
DECL_THIS_INLINE appropriately for clones.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34101 138bc75d-0d04-0410-961f-82ee72b054a4
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 5fa56d00296..40e7175a8d6 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 3fcb0f40098..e83c916fe10 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 1158f396965..b7711d6e02e 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 (); |