allow the target to label code fragments generated by partitioning.
commit14d11d4097091e8abaa63866f8cc0903f581c82a
authorIain Sandoe <iains@gcc.gnu.org>
Fri, 7 Jan 2011 13:57:45 +0000 (7 13:57 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Fri, 7 Jan 2011 13:57:45 +0000 (7 13:57 +0000)
treecf51df2cf5cae2810e51692d844e2d9afa6b187f
parent0b764288f97fbb0f33b42c66ebffc061ba59cb7d
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
gcc/ChangeLog
gcc/config/darwin-protos.h
gcc/config/darwin.c
gcc/config/darwin.h
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/final.c
gcc/output.h
gcc/target.def