aboutsummaryrefslogtreecommitdiff
path: root/gcc/output.h
diff options
context:
space:
mode:
authorIain Sandoe <iains@gcc.gnu.org>2011-01-07 13:57:45 +0000
committerIain Sandoe <iains@gcc.gnu.org>2011-01-07 13:57:45 +0000
commit14d11d4097091e8abaa63866f8cc0903f581c82a (patch)
treecf51df2cf5cae2810e51692d844e2d9afa6b187f /gcc/output.h
parent0b764288f97fbb0f33b42c66ebffc061ba59cb7d (diff)
downloadgcc-14d11d4097091e8abaa63866f8cc0903f581c82a.zip
gcc-14d11d4097091e8abaa63866f8cc0903f581c82a.tar.gz
gcc-14d11d4097091e8abaa63866f8cc0903f581c82a.tar.bz2
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. From-SVN: r168571
Diffstat (limited to 'gcc/output.h')
-rw-r--r--gcc/output.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/output.h b/gcc/output.h
index 6a835c0..39225a3a 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 *);