https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65504
--- Comment #20 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Jun 3 15:30:58 2015 New Revision: 224089 URL: https://gcc.gnu.org/viewcvs?rev=224089&root=gcc&view=rev Log: 2015-06-03 Jakub Jelinek <ja...@redhat.com> Backported from mainline 2015-03-23 Jakub Jelinek <ja...@redhat.com> PR target/65504 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER on the pseudo. (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set REG_POINTER on *destptr after adjusting it for prologue size. * gfortran.dg/pr65504.f90: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/pr65504.f90 Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/config/i386/i386.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog