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/config/darwin.h | |
parent | 0b764288f97fbb0f33b42c66ebffc061ba59cb7d (diff) | |
download | gcc-14d11d4097091e8abaa63866f8cc0903f581c82a.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.
From-SVN: r168571
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r-- | gcc/config/darwin.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 9092d6be397..74ced9c31ca 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -673,6 +673,10 @@ extern GTY(()) section * darwin_sections[NUM_DARWIN_SECTIONS]; #undef TARGET_ASM_FUNCTION_SECTION #define TARGET_ASM_FUNCTION_SECTION darwin_function_section +#undef TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS +#define TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS \ + darwin_function_switched_text_sections + #undef TARGET_ASM_SELECT_RTX_SECTION #define TARGET_ASM_SELECT_RTX_SECTION machopic_select_rtx_section #undef TARGET_ASM_UNIQUE_SECTION |