]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR middle-end/56015 (expand expands p[9] = COMPLEX_EXPR <-IMAGPART_EXPR...
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Apr 2013 18:01:51 +0000 (20:01 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Apr 2013 18:01:51 +0000 (20:01 +0200)
commit54e1155185fd41a33a34ea246591372b63a447b5
tree8af71f76308876bb4a3727d1386905faec21d008
parentb4de1dd6f5530913c4caf9c0f1404d9c507b0038
backport: re PR middle-end/56015 (expand expands p[9] = COMPLEX_EXPR <-IMAGPART_EXPR <p[9]>, REALPART_EXPR <p[9]>>; incorrectly.)

Backported from mainline
2013-01-18  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/56015
* expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
the case where writing real complex part of target modifies
op1.

* gfortran.dg/pr56015.f90: New test.

From-SVN: r197448
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr56015.f90 [new file with mode: 0644]