diff options
author | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-07 13:57:45 +0000 |
---|---|---|
committer | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-07 13:57:45 +0000 |
commit | 3b3edcd4913571ed26816dc0ba87308945216a55 (patch) | |
tree | cf51df2cf5cae2810e51692d844e2d9afa6b187f /gcc/output.h | |
parent | 1fce10e81fa617bc7efab2a1ba1b0899eb96cc29 (diff) | |
download | gcc-3b3edcd4913571ed26816dc0ba87308945216a55.tar.gz |
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
Diffstat (limited to 'gcc/output.h')
-rw-r--r-- | gcc/output.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 *); |