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 ppc64 undefined .LCTOC0 failures (PR target/17751)


	The original problem is an attempt at being too clever by half to
avoid defining the TOC section.  Making the logic even more complicated is
not the right direction.  GCC on AIX calls toc_section() from
rs6000_xcoff_file_start() to always define the section.  Please do not
sprinkle ensure_toc_section() throughout the code and instead extend the
AIX solution.

	I would recommend moving the initialization to
rs6000_file_start(), protected by

	if (DEFAULT_ABI == ABI_AIX || (TARGET_ELF && flag_pic == 2))

and removing the duplicate from rs6000_xcoff_file_start().  Also, removing
the conditional definition from emit_load_toc_table().

Thanks, David


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