This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
thunk prologues
- To: jason at cygnus dot com, egcs-patches at cygnus dot com
- Subject: thunk prologues
- From: Richard Henderson <rth at twiddle dot rth dot home>
- Date: Wed, 24 Jun 1998 04:50:10 -0700
- Reply-To: Richard Henderson <rth at cygnus dot com>
[ Well, not prologues in the sense of code, but in the sense of
complex asm pseudos to get the function going. ]
Due to some recent changes in the way alpha prologues (actual code)
are handled, the surrounding non-code bits have been (or will be)
shifted around, some into things called from assemble_function_start.
This affects the environment of ASM_OUTPUT_MI_THUNK.
I'd like to suggest the following change, so that my non-code bits
can notice and do the right thing.
r~
* method.c (emit_thunk): Set current_function_is_thunk for the
ASM_OUTPUT_MI_THUNK case as well.
Index: method.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/method.c,v
retrieving revision 1.58
diff -u -p -r1.58 method.c
--- method.c 1998/06/17 02:07:20 1.58
+++ method.c 1998/06/24 11:42:01
@@ -2006,6 +2006,7 @@ emit_thunk (thunk_fndecl)
= build_decl (RESULT_DECL, 0, integer_type_node);
fnname = XSTR (XEXP (DECL_RTL (thunk_fndecl), 0), 0);
init_function_start (thunk_fndecl, input_filename, lineno);
+ current_function_is_thunk = 1;
assemble_start_function (thunk_fndecl, fnname);
ASM_OUTPUT_MI_THUNK (asm_out_file, thunk_fndecl, delta, function);
assemble_end_function (thunk_fndecl, fnname);