diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2011-01-07 13:57:45 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2011-01-07 13:57:45 +0000 |
commit | 14d11d4097091e8abaa63866f8cc0903f581c82a (patch) | |
tree | cf51df2cf5cae2810e51692d844e2d9afa6b187f /gcc/doc | |
parent | 0b764288f97fbb0f33b42c66ebffc061ba59cb7d (diff) | |
download | gcc-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/doc')
-rw-r--r-- | gcc/doc/tm.texi | 4 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index b13ddfb..139c5a7 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -7325,6 +7325,10 @@ at startup (from static constructors or it is @code{main()}). Return NULL if function should go to default text section. @end deftypefn +@deftypefn {Target Hook} void TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS (FILE *@var{file}, tree @var{decl}, bool @var{new_is_cold}) +Used by the target to emit any assembler directives or additional labels needed when a function is partitioned between different sections. Output should be written to @var{file}. The function decl is available as @var{decl} and the new section is `cold' if @var{new_is_cold} is @code{true}. +@end deftypefn + @deftypevr {Target Hook} bool TARGET_HAVE_NAMED_SECTIONS This flag is true if the target supports @code{TARGET_ASM_NAMED_SECTION}. It must not be modified by command-line option processing. diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index f78eba9..2085816 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -7298,6 +7298,8 @@ at startup (from static constructors or it is @code{main()}). Return NULL if function should go to default text section. @end deftypefn +@hook TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS + @hook TARGET_HAVE_NAMED_SECTIONS This flag is true if the target supports @code{TARGET_ASM_NAMED_SECTION}. It must not be modified by command-line option processing. |