From 10d075b5acacdc95f009fcf2ec1ee9e75a91296a Mon Sep 17 00:00:00 2001 From: hubicka Date: Sun, 28 Oct 2001 16:10:12 +0000 Subject: [PATCH] * expr.c (emit_group_load): Support CONCATs by storing them to memory and reloading. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46586 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/expr.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ee0f8e6..5cb7bfd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Oct 28 17:05:36 CET 2001 Jan Hubicka + + * expr.c (emit_group_load): Support CONCATs by storing them to memory + and reloading. + Sun Oct 28 09:59:54 2001 Richard Kenner * expr.c (store_constructor_field): Only call adjust_address on MEM. diff --git a/gcc/expr.c b/gcc/expr.c index c0ddd98..b5c59899 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -2020,6 +2020,14 @@ emit_group_load (dst, orig_src, ssize, align) else if (bytepos == (HOST_WIDE_INT) GET_MODE_SIZE (GET_MODE (XEXP (src, 0))) && bytelen == GET_MODE_SIZE (GET_MODE (XEXP (src, 1)))) tmps[i] = XEXP (src, 1); + else if (bytepos == 0) + { + rtx mem; + mem = assign_stack_temp (GET_MODE (src), + GET_MODE_SIZE (GET_MODE (src)), 0); + emit_move_insn (mem, src); + tmps[i] = change_address (mem, mode, XEXP (mem, 0)); + } else abort (); } -- 2.7.4