From patchwork Wed May 5 13:52:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 1474331 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=Qm2UfJKV; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FZynX1R8fz9sCD for ; Wed, 5 May 2021 23:52:16 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E2CAF384F003; Wed, 5 May 2021 13:52:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2CAF384F003 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1620222733; bh=SGRHPlyHujfUpiMphJM2BwbSEugzLe0SHAv4D25uxwk=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Qm2UfJKVCfA5xHb/FIFIIARm2HvHUe/hqoeTzEVhzMHWbVjOcoNzdUYemPk4QWWM+ GjI98whTj14WIAcnCHit7M6USkUvUB+JhP4TcsRUtnx4us37plPXjA7XQGmbRAUcFL sBFBiPzcgfPSmA7H+YeBlllZn4R4iM9AIxO7yj74= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by sourceware.org (Postfix) with ESMTPS id 2698A3857426 for ; Wed, 5 May 2021 13:52:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2698A3857426 Received: by mail-pj1-x1031.google.com with SMTP id gc22-20020a17090b3116b02901558435aec1so867166pjb.4 for ; Wed, 05 May 2021 06:52:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=SGRHPlyHujfUpiMphJM2BwbSEugzLe0SHAv4D25uxwk=; b=aDzqjsv26Vb9alk8OuqgEJ6X+4leHNCnJabtA66DD43mAuHPkCWA051i0TaELLGwLk gIu59OqNClWsIkU8Q/JQtWfxT7TC8eWvNA3YlF3K2uZu4k2cxYMjlV5oVcnqVCKiOhjz U4Eu54kLzxai9iA7683zfDIQwrQkGRh5HDdImqhYIj9qsrnJgUoVQA5vly7ZUbDkFChw DfiMsMTWK3UXcHQxP5zR8ZtGiv7CrA1WyvgOuC6vSAYiKbPVqV0mJCywDoxN88jBXyhU tG+yHWrJs4cdFvEqpfcB22gaw+W/mHSPEX8SXN8UBCKSO99oBI4Q0//+fKfgwd5fZ/qE /8Yg== X-Gm-Message-State: AOAM531Elf++OJuOOx0VobCzo246Tz4JhRxeVsoR4e8UudymIeoU9fy4 01RrCWdi/uGi6JJyGyTcyZuG7+JhjzZSaw== X-Google-Smtp-Source: ABdhPJyFXXus8+oeb5SRSlGiyPXUvG0ZZ1L8vpAeKs8WZTplsLD9gmzcKPoSMiJupuB8T4nxOa7/1g== X-Received: by 2002:a17:90a:fb98:: with SMTP id cp24mr33871341pjb.24.1620222728845; Wed, 05 May 2021 06:52:08 -0700 (PDT) Received: from [192.168.1.2] (c-98-202-48-222.hsd1.ut.comcast.net. [98.202.48.222]) by smtp.gmail.com with ESMTPSA id a20sm15360547pfn.23.2021.05.05.06.52.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 May 2021 06:52:08 -0700 (PDT) To: GCC Patches Subject: [committed] Fix minor CC0 removal fallout on cr16 Message-ID: <50cea1e6-88c5-26b8-04bf-a9da2071d5df@gmail.com> Date: Wed, 5 May 2021 07:52:07 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jeff Law via Gcc-patches From: Jeff Law Reply-To: Jeff Law Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" cr16 failed to build due to remnants of CC0 support (NOTICE_UPDATE_CC).  This removes the macro and obvious bits necessary to support it.  Committed to the trunk. Jeff commit 14cf6aab8578132ec89ccb46e69899ae6008ff63 Author: Jeff Law Date: Wed May 5 07:49:28 2021 -0600 Remove NOTICE_UPDATE_CC remnants on cr16 gcc * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove. * config/cr16/cr16.c (notice_update_cc): Remove. * config/cr16/cr16-protos.h (notice_update_cc): Remove. diff --git a/gcc/config/cr16/cr16-protos.h b/gcc/config/cr16/cr16-protos.h index 32f54e0936e..8580dfef716 100644 --- a/gcc/config/cr16/cr16-protos.h +++ b/gcc/config/cr16/cr16-protos.h @@ -67,7 +67,6 @@ enum cr16_addrtype CR16_ABSOLUTE }; -extern void notice_update_cc (rtx); extern int cr16_operand_bit_pos (int val, int bitval); extern void cr16_decompose_const (rtx x, int *code, enum data_model_type *data, diff --git a/gcc/config/cr16/cr16.c b/gcc/config/cr16/cr16.c index 079706f7a91..6c81c399f70 100644 --- a/gcc/config/cr16/cr16.c +++ b/gcc/config/cr16/cr16.c @@ -2095,37 +2095,6 @@ cr16_legitimate_constant_p (machine_mode mode ATTRIBUTE_UNUSED, return 1; } -void -notice_update_cc (rtx exp) -{ - if (GET_CODE (exp) == SET) - { - /* Jumps do not alter the cc's. */ - if (SET_DEST (exp) == pc_rtx) - return; - - /* Moving register or memory into a register: - it doesn't alter the cc's, but it might invalidate - the RTX's which we remember the cc's came from. - (Note that moving a constant 0 or 1 MAY set the cc's). */ - if (REG_P (SET_DEST (exp)) - && (REG_P (SET_SRC (exp)) || GET_CODE (SET_SRC (exp)) == MEM)) - { - return; - } - - /* Moving register into memory doesn't alter the cc's. - It may invalidate the RTX's which we remember the cc's came from. */ - if (GET_CODE (SET_DEST (exp)) == MEM && REG_P (SET_SRC (exp))) - { - return; - } - } - - CC_STATUS_INIT; - return; -} - static scalar_int_mode cr16_unwind_word_mode (void) { diff --git a/gcc/config/cr16/cr16.h b/gcc/config/cr16/cr16.h index ae90610ad80..4ce9e81b0e3 100644 --- a/gcc/config/cr16/cr16.h +++ b/gcc/config/cr16/cr16.h @@ -195,9 +195,6 @@ while (0) (targetm.hard_regno_nregs (REGNO, \ GET_MODE_WIDER_MODE (word_mode).require ()) == 1) -#define NOTICE_UPDATE_CC(EXP, INSN) \ - notice_update_cc ((EXP)) - /* Interrupt functions can only use registers that have already been saved by the prologue, even if they would normally be call-clobbered Check if sizes are same and then check if it is possible to rename. */