From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 401 invoked by alias); 12 Dec 2018 20:22:08 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 130673 invoked by uid 89); 12 Dec 2018 20:22:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=temporarily, copy_rtx X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Dec 2018 20:22:06 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 7CEBC124040A; Wed, 12 Dec 2018 20:22:04 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: Segher Boessenkool Subject: [PATCH] match_asm_constraints: Use copy_rtx where needed (PR88001) Date: Wed, 12 Dec 2018 20:22:00 -0000 Message-Id: <18b30d3165091109ed6a32d8521ecaa1e6676fd7.1544645282.git.segher@kernel.crashing.org> X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00865.txt.bz2 The new insn here (temporarily) illegally shares RTL. This fixes it. Tested with an ARC cross, and regstrapped on powerpc64-linux {-m32,-m64}. Is this okay for trunk? Segher 2018-12-12 Segher Boessenkool PR rtl-optimization/88001 * function.c (match_asm_constraints_1): Don't invalidly share RTL. --- gcc/function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/function.c b/gcc/function.c index 69523c1..60e96f3 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); -- 1.8.3.1