From 3b3edcd4913571ed26816dc0ba87308945216a55 Mon Sep 17 00:00:00 2001 From: iains Date: Fri, 7 Jan 2011 13:57:45 +0000 Subject: allow the target to label code fragments generated by partitioning. * target.def (function_switched_text_sections): New Hook. * doc/tm.texi Regenerated. * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS) New. * final.c (default_function_switched_text_sections): New. (final_scan_insn): Call function_switched_text_sections when a mid-function section change occurs. * output.h (default_function_switched_text_sections): Declare. * config/darwin-protos.h (darwin_function_switched_text_sections) : Likewise. * config/darwin.c (darwin_function_switched_text_sections): New. * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS) New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168571 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/output.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/output.h') diff --git a/gcc/output.h b/gcc/output.h index 6a835c0f932..39225a3a6cc 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -417,6 +417,9 @@ extern const char *user_label_prefix; /* Default target function prologue and epilogue assembler output. */ extern void default_function_pro_epilogue (FILE *, HOST_WIDE_INT); +/* Default target function switched text sections. */ +extern void default_function_switched_text_sections (FILE *, tree, bool); + /* Default target hook that outputs nothing to a stream. */ extern void no_asm_to_stream (FILE *); -- cgit v1.2.1