https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65810
--- Comment #7 from Alan Modra <amodra at gcc dot gnu.org> --- Author: amodra Date: Tue Apr 28 03:47:19 2015 New Revision: 222498 URL: https://gcc.gnu.org/viewcvs?rev=222498&root=gcc&view=rev Log: PR target/65810 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define. (offsettable_ok_by_alignment): Use minimum of decl and toc pointer alignment. Replace dead code with assertion. (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium case if size exceeds toc pointer alignment. (rs6000_legitimize_reload_address): Update use_toc_relative_ref call. (rs6000_emit_move): Likewise. * configure.ac: Add linker toc pointer alignment check. * configure: Regenerate. * config.in: Regenerate. Modified: trunk/gcc/ChangeLog trunk/gcc/config.in trunk/gcc/config/rs6000/rs6000.c trunk/gcc/configure trunk/gcc/configure.ac