https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89412
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 12:08:46 2019 New Revision: 275118 URL: https://gcc.gnu.org/viewcvs?rev=275118&root=gcc&view=rev Log: Backported from mainline 2019-02-20 Jakub Jelinek <ja...@redhat.com> PR middle-end/89412 * expr.c (expand_assignment): If result is a MEM, use change_address instead of simplify_gen_subreg. * gcc.c-torture/compile/pr89412.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/compile/pr89412.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/expr.c branches/gcc-7-branch/gcc/testsuite/ChangeLog