This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

thunk prologues


[ 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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]