]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* method.c (emit_thunk): Don't let the backend defer generic thunks.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 7 Nov 1997 19:57:13 +0000 (19:57 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 7 Nov 1997 19:57:13 +0000 (14:57 -0500)
From-SVN: r16360

gcc/cp/ChangeLog
gcc/cp/method.c

index 9a5d1f9be98e916e024370405c6c1fefa4a6f7a6..f2825d72eafc49e460839f11f7fbfef912a2397c 100644 (file)
@@ -1,3 +1,7 @@
+Thu Nov  6 11:28:14 1997  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * method.c (emit_thunk): Don't let the backend defer generic thunks.
+
 Wed Nov  5 23:52:50 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * except.c (call_eh_info): Split out...
index 3b7dbc833a37035a57b2292146b2f9449ddfec65..0e407fe1ab8c88ab1432490baedcec2b3e8c009d 100644 (file)
@@ -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 */
   }