This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fix hardcoded rs6000-xcoff csects alignment


David Edelsohn wrote:
> 	* config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
> 	internal macro. Default alignment factor for csect directives, chosen
> 	to match what BIGGEST_ALIGNMENT allows.
> 	(DATA_SECTION_ASM_OP): Use it.
> 	* config/rs6000/rs6000.c
> 	(rs6000_xcoff_output_readonly_section_asm_op):
> 	Use XCOFF_CSECT_DEFAULT_ALIGNMENT_STR.
> 	(rs6000_xcoff_output_readwrite_section_asm_op): Likewise.
> 	(rs6000_xcoff_output_toc_section_asm_op): Likewise.
> 
> This is okay, except for the last change.  The secondary TOC section
> contains pointers and currently aligns to the pointer size based on
> TARGET_32BIT.  No need to align that csect more strictly than 64 bits, and
> especially not varying between 32 bits and 128 bits.

 OK, revs 127956 for the source changes & 127957 for the testcase.

 Thanks.



 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]