diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-04-17 23:12:07 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-04-17 23:12:07 +0000 |
commit | 82234d29c895cff183e8277e1ce944e97e3050c0 (patch) | |
tree | 2d4ecfbaed9d5be698c584fa0e22ebde77d91ada /gcc | |
parent | 0b5107cf3a4dcb6934c4b55c569360ca38aa2035 (diff) | |
download | gcc-82234d29c895cff183e8277e1ce944e97e3050c0.zip gcc-82234d29c895cff183e8277e1ce944e97e3050c0.tar.gz gcc-82234d29c895cff183e8277e1ce944e97e3050c0.tar.bz2 |
* method.c (make_thunk): Set DECL_CONTEXT for a THUNK_DECL.
From-SVN: r33216
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/method.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 08fbb76..da6fca8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Mon Apr 17 17:11:16 2000 Mark P Mitchell <mark@codesourcery.com> + + * method.c (make_thunk): Set DECL_CONTEXT for a THUNK_DECL. + 2000-04-16 Mark Mitchell <mark@codesourcery.com> * class.c (build_vtable_entry): Don't build thunks for type-info diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 4d28c20..31b02be 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -2065,6 +2065,7 @@ make_thunk (function, delta, vcall_index) = vcall_index * int_size_in_bytes (vtable_entry_type); DECL_EXTERNAL (thunk) = 1; DECL_ARTIFICIAL (thunk) = 1; + DECL_CONTEXT (thunk) = DECL_CONTEXT (func_decl); /* So that finish_file can write out any thunks that need to be: */ pushdecl_top_level (thunk); } |