PR middle-end/85878
commit852e7df70a206715ad328ceb4c0f2282906c24d0
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Jun 2018 20:36:38 +0000 (15 20:36 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Jun 2018 20:36:38 +0000 (15 20:36 +0000)
treec9666afbacc9e91f2ba218c44d66904e891c37cb
parentad9278cc6972df60ebbbe5d5ab9b5ff15b39371e
PR middle-end/85878
* expr.c (expand_assignment): Remove now redundant COMPLEX_MODE_P
check from first store_expr, use to_mode instead of GET_MODE (to_rtx).
Only call store_expr for halves if the mode is the same.

* gfortran.fortran-torture/compile/pr85878.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261659 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/compile/pr85878.f90 [new file with mode: 0644]