From 224694090c01069cec258efe72c5115b7ef2a879 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Mon, 8 Aug 2005 19:47:59 +0000 Subject: [PATCH] * expr.c (write_complex_part): Return after handling MEM. From-SVN: r102878 --- gcc/ChangeLog | 4 ++++ gcc/expr.c | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 31f287388a2..492631db73a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-08-08 Bob Wilson + + * expr.c (write_complex_part): Return after handling MEM. + 2005-08-08 Josh Conner PR rtl-optimization/23241 diff --git a/gcc/expr.c b/gcc/expr.c index 472e10a1579..5961e27c6c4 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -2669,9 +2669,12 @@ write_complex_part (rtx cplx, rtx val, bool imag_p) adjust_address_nv. Instead of preparing fallback support for an invalid address, we call adjust_address_nv directly. */ if (MEM_P (cplx)) - emit_move_insn (adjust_address_nv (cplx, imode, - imag_p ? GET_MODE_SIZE (imode) : 0), - val); + { + emit_move_insn (adjust_address_nv (cplx, imode, + imag_p ? GET_MODE_SIZE (imode) : 0), + val); + return; + } /* If the sub-object is at least word sized, then we know that subregging will work. This special case is important, since store_bit_field -- 2.30.2