From: Segher Boessenkool Date: Sat, 15 Dec 2018 12:07:42 +0000 (+0100) Subject: backport: re PR rtl-optimization/88001 (ASMCONS cannot handle properly UNSPEC(CONST)) X-Git-Tag: releases/gcc-7.5.0~721 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3654355b5e502132b647da93c6d7f6c9b3545e3;p=thirdparty%2Fgcc.git backport: re PR rtl-optimization/88001 (ASMCONS cannot handle properly UNSPEC(CONST)) Backport from trunk 2018-12-14 Segher Boessenkool PR rtl-optimization/88001 * function.c (match_asm_constraints_1): Don't invalidly share RTL. From-SVN: r267172 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1adedcc527ce..fc096324ec29 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2018-12-15 Segher Boessenkool + + Backport from trunk + 2018-12-14 Segher Boessenkool + + PR rtl-optimization/88001 + * function.c (match_asm_constraints_1): Don't invalidly share RTL. + 2018-12-13 Andreas Krebbel Backport from mainline diff --git a/gcc/function.c b/gcc/function.c index bde4da073c28..7df51f29fd86 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -6604,7 +6604,7 @@ match_asm_constraints_1 (rtx_insn *insn, rtx *p_sets, int noutputs) output_matched[match] = true; start_sequence (); - emit_move_insn (output, input); + emit_move_insn (output, copy_rtx (input)); insns = get_insns (); end_sequence (); emit_insn_before (insns, insn);