aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2014-03-20 23:47:23 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-03-20 23:47:23 +0000
commitc6c2314faa58dfc3defd6123827bb75d96751884 (patch)
tree20233a798b9d575eb786c8c0056dbf50e7b48b66
parent7b8fda082f1729a6e7f15f3f10cb5396feb0d2b9 (diff)
downloadgcc-c6c2314faa58dfc3defd6123827bb75d96751884.zip
gcc-c6c2314faa58dfc3defd6123827bb75d96751884.tar.gz
gcc-c6c2314faa58dfc3defd6123827bb75d96751884.tar.bz2
* expr.c (expand_expr_real_1): Remove outdated comment.
From-SVN: r208740
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/expr.c17
2 files changed, 9 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6821c915..dc03b1d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
+
+ * expr.c (expand_expr_real_1): Remove outdated comment.
+
2014-03-20 Jakub Jelinek <jakub@redhat.com>
PR middle-end/60597
diff --git a/gcc/expr.c b/gcc/expr.c
index 2dcdfc2..cdb4551 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -1993,7 +1993,6 @@ emit_group_store (rtx orig_dst, rtx src, tree type ATTRIBUTE_UNUSED, int ssize)
/* It is unclear if we can ever reach here, but we may as well handle
it. Allocate a temporary, and split this into a store/load to/from
the temporary. */
-
temp = assign_stack_temp (GET_MODE (dst), ssize);
emit_group_store (temp, src, type, ssize);
emit_group_load (dst, temp, type, ssize);
@@ -10242,19 +10241,13 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
/* If the result type is BLKmode, store the data into a temporary
of the appropriate type, but with the mode corresponding to the
- mode for the data we have (op0's mode). It's tempting to make
- this a constant type, since we know it's only being stored once,
- but that can cause problems if we are taking the address of this
- COMPONENT_REF because the MEM of any reference via that address
- will have flags corresponding to the type, which will not
- necessarily be constant. */
+ mode for the data we have (op0's mode). */
if (mode == BLKmode)
{
- rtx new_rtx;
-
- new_rtx = assign_stack_temp_for_type (ext_mode,
- GET_MODE_BITSIZE (ext_mode),
- type);
+ rtx new_rtx
+ = assign_stack_temp_for_type (ext_mode,
+ GET_MODE_BITSIZE (ext_mode),
+ type);
emit_move_insn (new_rtx, op0);
op0 = copy_rtx (new_rtx);
PUT_MODE (op0, BLKmode);