This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 1997-10-31 egcs snapshot available
- To: hjl at lucon dot org (H.J. Lu), egcs at cygnus dot com
- Subject: Re: 1997-10-31 egcs snapshot available
- From: Jason Merrill <jason at cygnus dot com>
- Date: 06 Nov 1997 11:42:08 -0800
- References: <9803.878790774@hurl.cygnus.com><m0xTWK7-0004ecC.cygnus.egcs@ocean.lucon.org>
>>>>> H J Lu <hjl@lucon.org> writes:
> How about the vtable thunks bug on alpha? -fvtable-thunks is broken
> on alpha, which is the default for linux. I have sent in a patch:
> Sat Oct 11 17:24:53 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
> * toplev.c (rest_of_compilation): Don't defer thunks.
> What happened to it?
Hadn't gotten to it, sorry. I think I prefer this fix:
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.
Index: method.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/cp/method.c,v
retrieving revision 1.166
diff -c -r1.166 method.c
*** method.c 1997/10/22 23:59:59 1.166
--- method.c 1997/11/06 19:39:12
***************
*** 1927,1932 ****
--- 1927,1939 ----
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 */
}