From: segher Date: Fri, 14 Dec 2018 08:29:34 +0000 (+0000) Subject: match_asm_constraints: Use copy_rtx where needed (PR88001) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4391aaed541717619453d36ac783eff772a720cb;p=thirdparty%2Fgcc.git match_asm_constraints: Use copy_rtx where needed (PR88001) The new insn here (temporarily) illegally shares RTL. This fixes it. PR rtl-optimization/88001 * function.c (match_asm_constraints_1): Don't invalidly share RTL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267122 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 39521bc129e9..6222a3f74ef5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-12-14 Segher Boessenkool + + PR rtl-optimization/88001 + * function.c (match_asm_constraints_1): Don't invalidly share RTL. + 2018-12-14 Bin Cheng * auto-profile.c (afdo_annotate_cfg): Call update_max_bb_count even diff --git a/gcc/function.c b/gcc/function.c index 69523c1d7230..60e96f30ccb6 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -6529,7 +6529,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);