[PATCH] Provide unwind info for i?86 pc thunks even for -fno-dwarf2-cfi-asm (PR debug/43293)

Richard Henderson rth@redhat.com
Wed Mar 24 18:06:00 GMT 2010


On 03/24/2010 09:47 AM, Jakub Jelinek wrote:
> 	PR debug/43293
> 	* target.h (struct gcc_target): Add code_end hook.
> 	* target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
> 	if not yet defined.
> 	(TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
> 	* toplev.c (compile_file): Call targetm.asm_out.code_end
> 	hook before unwind info/debug info output.
> 	* config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
> 	* config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
> 	(TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
> 	* config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
> 	(TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
> 	* config/i386/i386.c (ix86_file_end): Renamed to...
> 	(ix86_code_end): ... this.  Make static.  Don't call
> 	file_end_indicate_exec_stack.  Emit unwind info using
> 	final_start_function/final_end_function.
> 	(darwin_x86_file_end): Remove.
> 	(TARGET_ASM_CODE_END): Define.
> 	* config/i386/i386.h (TARGET_ASM_FILE_END,
> 	NEED_INDICATE_EXEC_STACK): Don't define.
> 	* config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
> 	(TARGET_ASM_FILE_END): Define to darwin_file_end.
> 	* config/i386/i386-protos.h (ix86_file_end): Remove prototype.

Ok with added documentation for the TARGET_ASM_CODE_END hook.


r~



More information about the Gcc-patches mailing list