[Patch] make it possible for the target to rename ".tm_clone_table"

Iain Sandoe developer@sandoe-acoustics.co.uk
Sat Nov 19 17:39:00 GMT 2011


On 18 Nov 2011, at 22:06, Joseph S. Myers wrote:

> TM_CLONE_TABLE_SECTION_NAME would better be a target hook, not a  
> macro.

... done as below ...

It should be possible for Rainer to define  
TARGET_ASM_TM_CLONE_TABLE_SECTION_NAME to NULL, and have varasm use  
the normal data section for tm_clone_table sections.    One might wish  
to re-adjust testsuite/gcc.dg/tm/20100615.c if that is done.


OK for trunk?
Iain

gcc:

	* target.def (tm_clone_table_section_name): New hook.
	* doc/tm.texi.in (TARGET_ASM_TM_CLONE_TABLE_SECTION_NAME): Define.
	* doc/tm.texi: Regenerate.
	* varasm.c (dump_tm_clone_pairs): Use target  
tm_clone_table_section_name if
	available, if that is NULL fall back to the data section.
	* config/darwin.h (TARGET_ASM_TM_CLONE_TABLE_SECTION_NAME): New.


gcc/testsuite:

	* gcc.dg/tm/20100615.c: Adjust for Darwin tm_clone_table section name.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 181497-libitm-tm-sect-target-hook.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111119/a60eca82/attachment.txt>
-------------- next part --------------





More information about the Gcc-patches mailing list