On Tue, May 14, 2019 at 09:42:58AM -0400, David Edelsohn wrote: > I would like to backport two AIX-specific patches to GCC 8. These > both fix bugs that generate wrong code on AIX. > > 1) XCOFF private read only data section > > 2) Follow AIX ABI to not pass FP structures in FPRs. > > These patches have been on trunk / GCC 9 for months. > > Bootstrapped gcc-8-branch on powerpc-ibm-aix7.2.0.0. > > Is this okay?
Sure! For GCC 7 too, if you want? Segher > * xcoffout.h (xcoff_private_rodata_section_name): Declare. > * xcoffout.c (xcoff_private_rodata_section_name): Define. > * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create > read_only_private_data_section using > xcoff_private_rodata_section_name. > (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name. > > PR target/61976 > * config/rs6000/rs6000.c (rs6000_function_arg): Don't pass aggregates > in FPRs on AIX. Ensure type is non-NULL. > (rs6000_arg_partial_bytes): Same.