https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89412
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Apr 30 20:30:27 2019 New Revision: 270714 URL: https://gcc.gnu.org/viewcvs?rev=270714&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-8-branch/gcc/testsuite/gcc.c-torture/compile/pr89412.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/expr.c branches/gcc-8-branch/gcc/testsuite/ChangeLog