From 11f8059d787d040138e2ef94640a2e74c1af91b8 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 7 Nov 1997 19:57:13 +0000 Subject: [PATCH] * method.c (emit_thunk): Don't let the backend defer generic thunks. From-SVN: r16360 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/method.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 9a5d1f9be98e..f2825d72eafc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Thu Nov 6 11:28:14 1997 Jason Merrill + + * method.c (emit_thunk): Don't let the backend defer generic thunks. + Wed Nov 5 23:52:50 1997 Jason Merrill * except.c (call_eh_info): Split out... diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 3b7dbc833a37..0e407fe1ab8c 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -1927,6 +1927,13 @@ emit_thunk (thunk_fndecl) c_expand_return (t); finish_function (lineno, 0, 0); + + /* Don't let the backend defer this function. */ + if (DECL_DEFER_OUTPUT (thunk_fndecl)) + { + output_inline_function (thunk_fndecl); + permanent_allocation (1); + } #endif /* ASM_OUTPUT_MI_THUNK */ } -- 2.47.2