From patchwork Thu Nov 10 01:15:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 17887 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp657697wru; Wed, 9 Nov 2022 17:16:26 -0800 (PST) X-Google-Smtp-Source: AMsMyM4FP/zYHHUESK9voGG8SPPARWFIkBLKDtYR7aea1QjIzZozrv7hsiYUEPQxZrG57JDatRc2 X-Received: by 2002:a17:906:5cd:b0:78e:108f:295e with SMTP id t13-20020a17090605cd00b0078e108f295emr2102240ejt.544.1668042986142; Wed, 09 Nov 2022 17:16:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668042986; cv=none; d=google.com; s=arc-20160816; b=1FARPasSQk1bWIlqmVw00/6t45L9BUhazW18OiVuo0Nl5J6z4Kf5pu6cIr2Tiyezcm ++W5MIhFE6Hk2pI7cr6NStR/ZmcLSSKZROs2EtU7fuZDkmpyL8XZmYC+D/KQflT9UGFR DtXIaPVcLoTOkoINQXHWb1O2FlspjdLltQ4XjUpdPlP1ss3gUe3sdOAwa9ZOqolLiYzV wF2MF4Gmy7yul3KApn4rckZGeWGX3OAHdT6zm2BgM8ZcppNDBpsNB4OBORmRbAaJV4uc SjG1G1KCtlbqMY5GKp4oUGJ3DoxcB+9AawQzaaZjzie5QUSR79ZIc8IA5HF4jH+5Lsof /ESg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=iIUi1O3sUQwE11XGXoXJFjTd5QFdedIp2mJSycEYURs=; b=y8clXInMD07EMpjuZJ2T4fs1w0USSgAnhBD8oJFWjONWViuZdHd4QBsJkB2myuBkwA g282QimQbGx1/CFW9cHpPaXp2rEhNhHN5EFd7/voI7d1iHtFewn+9KAH40YykJVPodb6 Blo+gdOhHUyuvepKFFBMyF8vXDslPmrQpLoEgaVLQreyDL3Jy55jTBYJw4H+R9Msma1E 1KYbQftn2/kx2puNJbbgpe39ZVLH4cFeQXW+wW4GHZsAFH7NhCAtAH+lTdOLDS/z9/HX Um36+xzT9wSb+CZcbrZT3LeMh6eB4mrlNaz1gS9G7bksiStVADLdEQ/QPd3HAB99BQzX SdiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=GzTOIYdO; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l3-20020a170907914300b007a7d37e4681si12516650ejs.845.2022.11.09.17.16.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 17:16:26 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=GzTOIYdO; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 25BEF3861C4D for ; Thu, 10 Nov 2022 01:16:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25BEF3861C4D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668042985; bh=iIUi1O3sUQwE11XGXoXJFjTd5QFdedIp2mJSycEYURs=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=GzTOIYdOnk33X6iwjzJHl84OsL5966iJ+nRhRSye27B7BzQkOiA9fRXnvKlZXjPF/ tSDLdstDn0Dmbp1Ze7yJaO8kCOQRrESNIHjO1H3A9UqOXUIhBZ6qUN23Ser0Ej0rID 68cUb8TUswz/M7LF7IOEEBZKmNhhUgimpcVrBHbM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by sourceware.org (Postfix) with ESMTPS id D2A2B3858423 for ; Thu, 10 Nov 2022 01:15:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D2A2B3858423 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AA19lhe032687 for ; Wed, 9 Nov 2022 17:15:41 -0800 Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3krqd400kr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 09 Nov 2022 17:15:41 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 9 Nov 2022 17:15:39 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 9 Nov 2022 17:15:39 -0800 Received: from linux.marvell.com (unknown [10.69.242.198]) by maili.marvell.com (Postfix) with ESMTP id E024B3F70AE; Wed, 9 Nov 2022 17:15:38 -0800 (PST) To: CC: Andrew Pinski Subject: [PATCH] Remove SLOW_SHORT_ACCESS from target headers Date: Wed, 9 Nov 2022 17:15:34 -0800 Message-ID: <1668042934-1377-1-git-send-email-apinski@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 8E5fsYLUcwqAZ7_jgv-UEe36-4FcCRd4 X-Proofpoint-GUID: 8E5fsYLUcwqAZ7_jgv-UEe36-4FcCRd4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-09_06,2022-11-09_01,2022-06-22_01 X-Spam-Status: No, score=-14.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: apinski--- via Gcc-patches From: "Li, Pan2 via Gcc-patches" Reply-To: apinski@marvell.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749069842277361378?= X-GMAIL-MSGID: =?utf-8?q?1749069842277361378?= From: Andrew Pinski SLOW_SHORT_ACCESS is defined in bfin and i386 target headers but the target macro is not used elsewhere. So let's remove it from those two headers and posion it. OK? Built x86_64-linux-gnu and bfin-elf. gcc/ChangeLog: * config/bfin/bfin.h (SLOW_SHORT_ACCESS): Delete. * config/i386/i386.h (SLOW_SHORT_ACCESS): Delete. * system.h: Poison SLOW_SHORT_ACCESS --- gcc/config/bfin/bfin.h | 1 - gcc/config/i386/i386.h | 3 --- gcc/system.h | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h index 4e7753038a8..1d75c655df8 100644 --- a/gcc/config/bfin/bfin.h +++ b/gcc/config/bfin/bfin.h @@ -810,7 +810,6 @@ typedef struct { subsequent accesses occur to other fields in the same word of the structure, but to different bytes. */ #define SLOW_BYTE_ACCESS 0 -#define SLOW_SHORT_ACCESS 0 /* Define this if most significant bit is lowest numbered in instructions that operate on numbered bit-fields. */ diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index b32db8da109..a5ad9f387f7 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -1933,9 +1933,6 @@ do { \ #define SLOW_BYTE_ACCESS 0 -/* Nonzero if access to memory by shorts is slow and undesirable. */ -#define SLOW_SHORT_ACCESS 0 - /* Define this macro if it is as good or better to call a constant function address than to call an address kept in a register. diff --git a/gcc/system.h b/gcc/system.h index c192b6c3ce7..de9c5c0d2ef 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -1075,7 +1075,7 @@ extern void fancy_abort (const char *, int, const char *) EH_FRAME_IN_DATA_SECTION TARGET_FLT_EVAL_METHOD_NON_DEFAULT \ JCR_SECTION_NAME TARGET_USE_JCR_SECTION SDB_DEBUGGING_INFO \ SDB_DEBUG NO_IMPLICIT_EXTERN_C NOTICE_UPDATE_CC \ - CC_STATUS_MDEP_INIT CC_STATUS_MDEP CC_STATUS + CC_STATUS_MDEP_INIT CC_STATUS_MDEP CC_STATUS SLOW_SHORT_ACCESS /* Hooks that are no longer used. */ #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \