diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2004-03-04 10:01:03 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2004-03-04 09:01:03 +0000 |
commit | 6a2d136bfdd1ffe83a1feb0aae0c741a7166604b (patch) | |
tree | 70ca7951bbb8dd5d3322110e353693674bfc1df8 /gcc/expr.c | |
parent | 3205a71e4c6b228e3b7ea99a657b4b42ffa3db69 (diff) | |
download | gcc-6a2d136bfdd1ffe83a1feb0aae0c741a7166604b.zip gcc-6a2d136bfdd1ffe83a1feb0aae0c741a7166604b.tar.gz gcc-6a2d136bfdd1ffe83a1feb0aae0c741a7166604b.tar.bz2 |
re PR rtl-optimization/14235 (ICE in verify_local_live_at start (flow.c:546))
PR optimization/14235
* expr.c (convert_move): Copy the source to a new pseudo
when converting from a sub-word source to a larger-than-word
register which conflicts with the source.
From-SVN: r78893
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -682,7 +682,11 @@ convert_move (rtx to, rtx from, int unsignedp) != CODE_FOR_nothing)) { if (GET_CODE (to) == REG) - emit_insn (gen_rtx_CLOBBER (VOIDmode, to)); + { + if (reg_overlap_mentioned_p (to, from)) + from = force_reg (from_mode, from); + emit_insn (gen_rtx_CLOBBER (VOIDmode, to)); + } convert_move (gen_lowpart (word_mode, to), from, unsignedp); emit_unop_insn (code, to, gen_lowpart (word_mode, to), equiv_code); |