From patchwork Tue Jun 25 21:59:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1952296 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=microsoft.com header.i=@microsoft.com header.a=rsa-sha256 header.s=selector2 header.b=M52QJr+p; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W7zKC3fY7z20XB for ; Wed, 26 Jun 2024 08:00:14 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4C200387091D for ; Tue, 25 Jun 2024 22:00:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20700.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::700]) by sourceware.org (Postfix) with ESMTPS id A83A838654B0 for ; Tue, 25 Jun 2024 21:59:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A83A838654B0 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=microsoft.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=microsoft.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A83A838654B0 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::700 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1719352784; cv=pass; b=FRoE4DAIGc8VGdkRTmhxKq5MqIjZedT1dTwHLYbmDou2qSUBLtm8jC8qLDBR2BpG+Dn3t//yoBTg8usjKf04afPusuBV5VktyN5/A8JQ2rv229ylj86Mnm9VXQxkY3yvAEyPuOTZdUPL+m0YB1OJNP9Qh64+Ks/dF5JHGIND49U= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1719352784; c=relaxed/simple; bh=+Uv09ujln4eb7smtjyOnWz4hS0hY+tupQIa9kPiwSQE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=eattsC1OztMG5X28roLsDP3CkYzlSeG52/MptVGHjzKC4OAoAosIxKLrZC/8zYVlhuCVhyCrBsZLjzJw8HF5CYwdTVbZwW8DXqdLt+l8jwAMmowFSQ1gbsMr+pgyJNfou+ZGB/LKrHym1a75ysy7LY2eVhwdILKRu2fsw/+XXOk= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kcdCMN3EnJ1TNfBCaY3MKdAxNT4EduwBR4Yl9PzcwFRCK/gj7GtpJfKHsSf1gAbANwL2+GxuCOvqb9XXDVp+4428MfRf2eiu3drG20PVDlsreGrI8AaLwlEXvyEIxIoCXZQXA5gIn8BqV/LE5ncJh6QTevB+cJGlf1uGCeKaiwPxWm6srIbWZf20Jq30J3RXSRgXfq7VWiRWOMqC5PkSSjkJirkIAvexHl5oJG6zyOECTqFgEyTYabCjJ0w8nRGk8uIDh9evOK3Fn785kfh5rhCP45jp51NAnH0NjI6SfVCpQ/p00vm5HcRTUFmwncnm8xZ581mKYCCbZg4BaPYIMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=20NHOQ0qntcNolKqzk9MblSVcGW/FmukuMePhlt3bKQ=; b=AOdFgwvQ7+7p+OwPsVjxYaiKsbSX1C/H1PJTu0g/7ZGMyiUKvQoTqm8VyVvbf99kD00WPcGq/Xqj3tfc2t61XxLQWcQNhHzvQEuvdn2NnOtnKwUoDk86FPaozHdLvgiKeQ6+cCwOhQX7HMSaf0Bos/B+xfCzutKw2NStRKJeJPk+XgJBOKzu8RXOZcMauFMErPCBPpjnP2iXvWwh7xqUHEmehn0rfuzhPif4OMB6TiI60ICxJAcgh3bUo9TbWvIKzgBDUfiPl7sXcsuREOwy87SZ2B6Ee2L9sG2+pCYPieYR5iuvBJ6AGYsMU6WibZDinPV27sDCfjPfX6ATRChcFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=20NHOQ0qntcNolKqzk9MblSVcGW/FmukuMePhlt3bKQ=; b=M52QJr+pfiof3hZWNvv2/uBTRJrk+b8booaE2BPX/pu9yvhv2L71tX9VfWn7xarFRhsIie3A3c/EKCoRjR5vNqqwjLlz5WuVbvnP9+Q4Tz/N1DSy4UAVZqasdueiCvbznHgV1Kb0ebrIE9Sgv7SxQfNHEIoe58qR37QKxJy9v3o= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by DU4PR83MB0820.EURPRD83.prod.outlook.com (2603:10a6:10:58a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.8; Tue, 25 Jun 2024 21:59:35 +0000 Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com ([fe80::399d:9bfc:1209:af10]) by DBBPR83MB0613.EURPRD83.prod.outlook.com ([fe80::399d:9bfc:1209:af10%7]) with mapi id 15.20.7741.006; Tue, 25 Jun 2024 21:59:35 +0000 From: Evgeny Karpov To: "gcc-patches@gcc.gnu.org" CC: "ubizjak@gmail.com" , Tobias Burnus , Radek Barton , "christophe.lyon@linaro.org" , Maxim Kuvyrkov Subject: [PATCH] i386: Remove declaration of unused functions Thread-Topic: [PATCH] i386: Remove declaration of unused functions Thread-Index: AdrHSmwWWHAZGXmlS6uxUNDnGH+gZw== Date: Tue, 25 Jun 2024 21:59:35 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=e7668700-0110-4108-bea5-753a6dc84b8a; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2024-06-25T21:46:48Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DBBPR83MB0613:EE_|DU4PR83MB0820:EE_ x-ms-office365-filtering-correlation-id: b1b26a16-64c7-4634-deb9-08dc956219d6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230038|1800799022|366014|376012|38070700016; x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E/yAk5wceg3oYGMhop9WXFFwAR0MNDuGIOBqcyEOb+6jcnlMXpvbxPQZfx+Qz7Xfm0VVtFddaWd9qkhOuMBX/kxGJjYVR8D8spd3ISGc2FA616aq6Bg7jyJCN9N1PLNaOLkcRtRhyqedVL5hLIenf9KuKlP8j6VMlzQpoQJtj2aqbC2pqHuzvVBxZJJl6hVXlSEh926kNbX51TLB3jWxihXQ2ZtDqvlesAC+w3aJvHOPqoEst5c940DGQQ06FoYvNpzViAennDLM90Bt+/nnbQhaCV5j5NLRLxg0w8jDHLGyK5QfzPB2paNJe8= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR83MB0613.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230038)(1800799022)(366014)(376012)(38070700016); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: qzMgFz/xaf7D2Q2La0JkdD2j3b4Nn3ED19zhSGY0ZIo6SOc2MZQ68xqYEmAVa1fb5rDyce23Vqt8DgQj8OXkGy63bnlLE7SLo1UrubvOuXPlEBu5q2fWb9P10ZitK58XpF1S65/enwU4oBd7cQ3fHN8Y7hAO1jfkIZirhYdwNik5yV4cEQVviW6wFAitm1N/jMptHijEAvV73a4/eqJNrOqT9PiXIwW+n1pmBeBs6WcwtKV1lA+t/XoGeVi0lSHTD+mvMq7cmcR+kjK4a6XsvAQ/vYL6/4X2aaNym2yantho6gc4Y5MaFdQIJWhn5LiehKmimBp419hWaY7b0ThEN9EYPlvgPLI0Xi5POIsS/aVYcisI5zP3+prEb+CV3/yBAQ6dzblKaPhi3UulJTpfHurkReduJNIIj4h82lPBZVQCLmgc5hMpRviEwRjogzX0zJX2vzcZ2gzpkdoWPUSJyaL89hw2bkM1hTd8DCzEhK1QR9BlNVpDCoHOnPbzM+qg8z8+VPgYQBdqiCHaW99qK+CPSqoHwxbSBROWw+RPcI1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-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DBBPR83MB0613.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b1b26a16-64c7-4634-deb9-08dc956219d6 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jun 2024 21:59:35.2596 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: skLkEAe9q3HA3pq+Kg6cDhSgRatj6EvYxcQcB6N2OS1Qw9+nOiqz6iiYjk2CoHdCuIGiw05iPAxhAgqbK9GmYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR83MB0820 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_SHORT, SPF_HELO_PASS, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org The patch fixes the issue introduced in https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=63512c72df09b43d56ac7680cdfd57a66d40c636 and reported at https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655599.html . Regards, Evgeny The patch fixes the issue with compilation on x86_64-gnu-linux when warnings for unused functions are treated as errors. gcc/ChangeLog: * config/i386/i386.cc (legitimize_dllimport_symbol): Remove unused functions. (legitimize_pe_coff_extern_decl): Likewise. --- gcc/config/i386/i386.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index aee88b08ae9..6d6a478f6f5 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -104,8 +104,6 @@ along with GCC; see the file COPYING3. If not see /* This file should be included last. */ #include "target-def.h" -static rtx legitimize_dllimport_symbol (rtx, bool); -static rtx legitimize_pe_coff_extern_decl (rtx, bool); static void ix86_print_operand_address_as (FILE *, rtx, addr_space_t, bool); static void ix86_emit_restore_reg_using_pop (rtx, bool = false);