diff options
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 85e2b3f8787..7a99c262471 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -328,6 +328,10 @@ use_thunk (tree thunk_fndecl, bool emit_p) There's no need to process this thunk again. */ return; + if (DECL_THUNK_P (function)) + /* The target is itself a thunk, process it now. */ + use_thunk (function, emit_p); + /* Thunks are always addressable; they only appear in vtables. */ TREE_ADDRESSABLE (thunk_fndecl) = 1; |