From patchwork Wed Feb 21 18:16:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86181 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B28CC3858418 for ; Wed, 21 Feb 2024 18:17:28 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2109.outbound.protection.outlook.com [40.107.22.109]) by sourceware.org (Postfix) with ESMTPS id 3B1AD3858D38 for ; Wed, 21 Feb 2024 18:17:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3B1AD3858D38 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 3B1AD3858D38 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.22.109 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708539422; cv=pass; b=mjtstJCOBsnkrusBkn2OV6UHmUHylqzr7Feo+dVy7qSQzQwdnRgy1dmHG43+W3aK+8aOHZ3j+L6ZhwgE72JgckhcX3LqebGEub9LHsOerFJZsvy+wns3wbPk/pwtqetYrea2zgThxUWxsrz+523pPg6KNnt0M2EqFnUTklTRyAo= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708539422; c=relaxed/simple; bh=HOCFkfr2xx/4j6tvVvdhOEib36V+O5FqwqhBA/qKl0M=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=AKVck4YSx73hWejHulcihGGU8Skdp38Ea3oTKjQi+1Bn6s/xNfM81urMpOkmTW7geEhY6tYeERAQQprr2fiU9pd19QzdxEBPr4WVOLUhuNcnAJLEWqbNn7ySH6BVcrJv7nVTGhK0Wc2WYgq29IoabykN0TJ8C5GSIN5HDNmBUu4= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IdL8+VKUSppWzoJugGXvNEmlcREa3bjbjBd44tO40nhVPFWtAGlPLO4DAHhM5V9CdJVk5uHWgsFHkbq/gsew+I9xFwLMra28GgYYhAsHr8BUKsvheoqyyo4MDhKNKByYq01mAH8TMxvIqa6Zjzeuki63fia2z6/qRZBLQRZy6iseITeNTzDuMLFdD2fjxQVgxnN2ANjLBe0dFfijUBR0iybAf1mXoNdE+yTroPmFZbtbqzwkzcNe0EhCAgN5ZUMtIDpfJzhk1Nr9AZnbSK6EAJzSNJylUzomzAJ5dGz+cxPzjC51fs6/ulM9qNRnwJnnSFIv2yVq7Ia7VVxkXaswzg== 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=7SITrzJODXX0lRD49jIGmmInk65jBmqllwzE2hyy11c=; b=gRF82YMEd3s6ezpXu6YFIpUdvxtXnVZhNQu56cvejzBfdPSXCKqaFGscdrN+GFgg+dmvpvReYSSIUHy650RTkumKL5gh1KEfiE0zYP5OUbalA6nmDcknr9bpAIJuYmMS3YQmZC0SJ2uPdfiB7xebP7WLg4M3x8gH0C136QTipx6mUzAfowC84MVAJiVxwV/MtCbL9/gz5+0W1fnhOFx9wUn/lRq5aGEZer33yxdrwsLr9tkdd1MQR867wIVzMekbjl3fVMfj3pWEAkWLmUsTQigyIU5/SbjeVv0XZnhxPTvuWCh7Ftu4Rom5KyfIr9IYYK1UZrhstDnAO+oPISkjRA== 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=7SITrzJODXX0lRD49jIGmmInk65jBmqllwzE2hyy11c=; b=X7eNGbWGOizbA3AefcdHvEW5uqjCe0riiPVCVacFWrQWjhqQj8fy6B7v3a3Io/nGl9BCfctkdHA/joZvwlCRAo6bhMts1JLcxEx03OoGBnTMZjlbjaTVntzgZ6IHjOWgfTy11fe0HRFa9Op3m5vsfwGUQVWcNtqm0WuFebRBiRg= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by PA4PR83MB0550.EURPRD83.prod.outlook.com (2603:10a6:102:26b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:16:54 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:16:53 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 01/13] Introduce aarch64-w64-mingw32 target Thread-Topic: [PATCH v1 01/13] Introduce aarch64-w64-mingw32 target Thread-Index: AQHaZPIlw3bdRIf3d0m4i3RboiYo2A== Date: Wed, 21 Feb 2024 18:16:52 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|PA4PR83MB0550:EE_ x-ms-office365-filtering-correlation-id: 73c4ee51-5a15-4ce8-19d8-08dc3309478f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kPrBQxvSCswK5DDI1ISj0q7EVgbvFdakQl8VYYntZgr60ivDOVpCec93CHRNKvOleHjZv4Fp4nUqZttcZDEKTNmJXsE/6eh0dbss1WJF1oPkN2tVTENTz4pDBeBHUj3G65YvVlPkdjCq5mmXKZYejbYDOCjdUkTAjUOBru+ulL5PLVS+V7MxFc9chXp3RU3I9Tw6/6AVrw3hVkLAAvrIP7vOoyzZb/op7jNSMzyn5Z1zaOZ085iSXssniJXB9wYAPV9fmzQ6yxdsSTwU6yBuj/jDoGo8vk6Od+33L/jV64ohDPv/S6Ty+uPMbwbWde+qA2UnLn23kX2a/+cgE2gHWb0W6VVtFHaqViWb78ay+48= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: oyIhk31BDXd+m2Ee6QQsC8VeY2GQ47JxhHhi+8mIC4GLvtdluu8anbLDF3B+JhwmeX4nqjnQCMJWMNiEwoG7AJ6okFsYPI9Bg6Z2IRnQiNIiGrkwfbBfJQYU0DJy+qs2KuV2quB6+1AbDDHOdt5pjZpl3iwxEW+pcCAzb0vc7MtxFAB+hSpBjYA9vCDuWdDlltiCLdprsBS3XqGRj+NofyhfDXRiCx7dTmSs7kBoxp3zri3YtOlZQ60AiS46JtbPGyqLOC7EmDHF5pl6HqLermzngd2iia2UDS2jTicle7ewFNzQ0JdlBnBFkltZmoRy0ybnfQqYGDzzctE2Wr8zDU35Lt9gh0VFKop163G1xlx3U8G19RZLbssKWUmUeb76UdR5wCSU0+tTgZpe3TPYBV321LWwvWREcH+VJ6m6yEDTKisMmCGd6/owUe2RIhOjj2PUYtnr4ffjTvlntBiAbq7xSPJdpzsFDAmcaHIC5uL2PeFd2im46nRs96MeUhnw3vccyF7tj7q+O/0yVlFQ4RGr8LHSfY5cWk7wBPQ+YsxrMEx0zrdLh+Hpoc6sifaSAwvrLk0WqzVglvr6iq5UXawsgPiCY24ClR3mLHxTJes8AeaXHGarWI89iuoEpkOfEJ2Xb4R9Q//vjn1w+dDHHUkqsSJYU3dY3xhRFPjAP1M6hkCe+GBb6SZTMq8Y+4GfSP8Q/3Tk4E9X3HWJEv+tjfSXFweCJjlF4gc/N55niQAvYHtAgURX82i4tdj2VwXNa2k1dQwOj9c+sqFdm6SPkMpMpF9VIiIUoU2KGhUJxkp0a1cgHyCeaJMaUHoV3v1MhxMd8af9gu4Ot/ctFXJjxVOFwigACbvBPKrVTghvsAGuA8Nj7a2b5KCHP845DaDA5TFPtDTTDvAHIyAvoL8Y2zUtU8WK5x3jUNHFMGTEldnBLdpyNqqBq2baKvZIcLhciOFo2Vg0fdmYo/5QSLalaZcksp4t3S2XqfRpRMEOBF5Cv7IHtK4uTIuVz0Rhpx0avMnFkRaHr/a2WsKzGA0jX288N345xicRM7K3UQ+CX/cNnX88p4OWXWh+nUumD8ou/1eqca1StuvEmx3MM6OfJ5Y4boeNSp5d02eVqr03zxILntP0q5qlFDLehdVChpSMStkbW5cRwEU15QNU8x5/hBKnbq05kaQCs72btGGjyAwYYNYrTmWJYYj2d3CMs+sltOqCEdLLK64oDo8hO0M6rTrpV/mPbBxUQrNnUkvpIrtwWkdH/xL6e1dYxShGC5zZiQIUh31Cu2mLGP+1ep1p7VE5B4pU7105i/IGvTCuy5+94X1AEgeaasXjybk0o3rtAdzkSkVvoQNhmhSqV6w9QiO6N0joWx3PDrB53laZi4YCq4CcVqx+5idcpX5FKfcCcaDM1U/dSWdiy+r5EqexETEEI+G29MDW0UqTwmnwoAKNvapXWNxYCCryWkPVQUMhnKyZZBl+uMYoxPhN7lcJrcJjxH2ZOHhSKCbctTpk/xsDfO2d8ORdzh+utxutcZBmhHbTDMlk5/36k4gf1iTRZb/1IoHpfTxBiZMqwiJIqnJOWIW3Xf9bWWIOmGglKpJN MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73c4ee51-5a15-4ce8-19d8-08dc3309478f X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:16:52.7966 (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: C62mYVcRFk3/CGzteaHmW6c2gMTv+G8xbTJhIC/mjq/Oqo/mxGrXPwPXfqLaWOHeJC2VHjQvffJWPnnaH9ujdA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR83MB0550 X-Spam-Status: No, score=-9.3 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From c5fec28077184119bc81d927e6062704c1796446 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Tue, 30 Jan 2024 06:42:46 +0100 Subject: [PATCH v1 01/13] Introduce aarch64-w64-mingw32 target Add the initial aarch64-w64-mingw32 target for gcc. fixincludes/ChangeLog: * mkfixinc.sh: Extend for *-mingw32* targets. gcc/ChangeLog: * config.gcc: Add aarch64-w64-mingw32 target. --- fixincludes/mkfixinc.sh | 3 +-- gcc/config.gcc | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/fixincludes/mkfixinc.sh b/fixincludes/mkfixinc.sh index df90720b716..7112f4dcd64 100755 --- a/fixincludes/mkfixinc.sh +++ b/fixincludes/mkfixinc.sh @@ -12,8 +12,7 @@ target=fixinc.sh # Check for special fix rules for particular targets case $machine in i?86-*-cygwin* | \ - i?86-*-mingw32* | \ - x86_64-*-mingw32* | \ + *-mingw32* | \ powerpc-*-eabisim* | \ powerpc-*-eabi* | \ powerpc-*-rtems* | \ diff --git a/gcc/config.gcc b/gcc/config.gcc index a0f9c672308..092a091595d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1263,6 +1263,20 @@ aarch64*-*-linux*) done TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` ;; +aarch64*-*-mingw*) + tmake_file="${tmake_file} aarch64/t-aarch64" + case ${enable_threads} in + "" | yes | win32) + thread_file='win32' + ;; + posix) + thread_file='posix' + ;; + esac + default_use_cxa_atexit=yes + need_64bit_isa=yes + user_headers_inc_next_post="${user_headers_inc_next_post} float.h" + ;; aarch64*-wrs-vxworks*) tm_file="${tm_file} elfos.h aarch64/aarch64-elf.h" tm_file="${tm_file} vx-common.h vxworks.h aarch64/aarch64-vxworks.h" From patchwork Wed Feb 21 18:26:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86182 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 513E53858437 for ; Wed, 21 Feb 2024 18:27:41 +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-db8eur05on2116.outbound.protection.outlook.com [40.107.20.116]) by sourceware.org (Postfix) with ESMTPS id B54193858D38 for ; Wed, 21 Feb 2024 18:27:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B54193858D38 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 B54193858D38 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.20.116 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540024; cv=pass; b=kZ4onyKuJBY1oixbsKc99noh3ceKwB4bvZRrKO7LXmLINqokZ8o6s5RL9d0P/9nzBjXNLQO8wzf6nXFwLrC3DqrolupUCh9ngUQFoCRh3PjmR84W6I0ct9CrlYUls3tpEi7zX0al65m6KFrG/vsnJ1XcNdEz2jTz8TH/ZYQsgn8= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540024; c=relaxed/simple; bh=5DhN8RbEpm9MpvlFHy2PoZfb8IU9puU5ceeOwqMO+Uo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=WrwAs+b4lGV6aPtHtsnEkZ2uFup+sJ6SBNS/ALQ8ShlMgvWZXqwRbeKJ/5/alcfhKyNiZOaaRbM2TZionw3QoduPM1cwsPQzx4xi+ryi41UTjcODGomF9pfesbHvruiAIJleKOzV2pvaTORLBetqO7BJjPW0/gXisUsUYAjc3Qc= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oGogvyGHRdT7w3EObeWiO+zlWlN87xgLwckbyhsIQBPVMfd/q4NFQFLYXKAL6LTbblkgIezEXTVjTJ5bAIysy3Q6APJ9k7PUztaQSGScJM5IjO66r5Hz++VQpj0pTCJ5fmIPbuHwcku0lMbHZFY/NGoP7Qe+7XT92OtlvMrKkWfBnlE2SlYCR92UGVAUAP+lOsf12UEEFnenoB4P7jRBPJii+cJhbFfOGo3dBhQg+q86OuoCz+iSH3SLoldLj/xu0/2W9h/BoFUlG28czxZxDjCZTbCEBJusGWoGbIUnZis1pO6dxAh10yCqx+40y1sjiFZpdpcUQO/E//fVlNwBUw== 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=vZGL3eUYEkNO5M3u+z3xGUagdgc500csRoACoaNxSbY=; b=DD8cPFAtIEU2zi/dYVYVOZ8gKFes9J9TJVALzXY4TgmS8InCSjmUzPtWYC0L1UXIOsI35lcKVxn5Qwa7k+IqmDx6kBaE4yWek4nuFlvHs2Pke9bp6jriYZdZ/5qmFSxoxIygg494dPu0pFoB0qoUDuO12dZD5y1sDEQxDz1dj5ewY/rgHuwQaEHW7fKmIybEvKOROiyeGA/f+5QcVOuZiHk7kFErbcS2+VWuz46sQ5uwmA6weYIli8jGbPbt75IX8dNs+FKutcfvH1wuYR5+qikxpNmkuktNprSr/g3s6C/tzA1lnsUJWwtwwBkoPBflmobm7NGILJJl6D3+wnw/Kg== 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=vZGL3eUYEkNO5M3u+z3xGUagdgc500csRoACoaNxSbY=; b=ZGgrXfQpQG6TbOToTZIl5uSSrrj+j1z7B4o9NAl9LgjVo1VaoPVS4/r6DaUGo7Rb0o/FF1cBngd1QxrV4VCKsd01Y87jS1luuNzQqwxTNdvKNYBHb4dAtTM4Y9hSjSn5TeKwQ3kgCZSHcqs8IE97fktV0VkeG9QZKAiledH6KIE= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBAPR83MB0407.EURPRD83.prod.outlook.com (2603:10a6:10:17c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:26:59 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:26:59 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 02/13] aarch64: The aarch64-w64-mingw32 target implements Thread-Topic: [PATCH v1 02/13] aarch64: The aarch64-w64-mingw32 target implements Thread-Index: AQHaZPOOrvtR4nxzOkKJZmV/dmRMNg== Date: Wed, 21 Feb 2024 18:26:59 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBAPR83MB0407:EE_ x-ms-office365-filtering-correlation-id: 504e6ab5-e25c-470d-40aa-08dc330ab11c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MdG2xyLCTjGA3818pYeg6GpkFWYPkeojs24kEo69V7aaavFcEgVargclUYor1C6xOYOB5OdE0IGwMiIbysns000tosUt46r/md9BO/k5qxw++Et71nJuSO4D1WtGUJHsANkxYQgD7NSTvZsFWVCmPI7KyPLFVAFHQ2AeFnZ1ZKP4jQspWpS/K4mPyTwemoOQRdPrb+242brEbkpLm1UfpNTRHHO3Hb/e71xkgf4jGaERdPgcwPRCmNHPrljPadAOaAPKeCrjsOIvvEXpOrsITXK0nnb8YtNTHq5amqAEd3wXPijqp7lLSjZaAW6OMM3Vfd66vvYN8NqesMh/PNW5btx6xEWybf4iSfH5BAVC9DE= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: q3djPAynWNttCAVL8txq6LNi5MVIZPWZG3arYbhJ8jpSfsY3T7dP0uVwUh/zS4GMFnnYilnKGam+Vxvh9SZ3hprnNfkDNLnEnBE3Hj01v0t5um+IM4UvVwEPKCWKO49iNR4u6cZcZd/waNHugAccEbO+fPjyyMQJUzbAiWDDVCSrfGIfjDb9IS+N0Gr3/H23UM3Y9s6lHHGCVgpCJk+9hfDQE/6jkChfAvVVissFk9lPWO0y8eiyn73PZaatOA7U+0t7LWzUMV0gn/IcP0vieJijSPH1xCEcYyvxcXPcqGHY0IJcblpGp7jn3NPLNzBLZsQn4oHjHhCjTmYmMbfl+FfoYC43Rv8LR0QqiL2kfuE+c7wUB5t3g5zUigMzLv5SfWoMyckSZNRULbvtY+CZATh6hSJ1lkvRleaW++FvO2/GCnYAR64pBSzJguS/USqHrKZNt98Xzf4minUoFL2BX6UWvUwZy5Uen/aZDupgHI9uv8+5SMWDtgp/Ycr33qIwJ1kqBfxC2g2kbI05BcBu8wzgBorCiFffND8yhzBhFYred9OHLZ2Y73EBjLqaKoQIzkTBu/+W1JQBu0wg5j/xKQFUb3X/USapOJKh7cKwknWs3GEOO23J0pHznXd/FC7tkVBVJDQ/BubT6AB4vQ+Xgu05mnTt2kRdH+jGzzRAWSoyvfBvT7MHo4bZAhVKQ1PiP7oC9pa40vk9Ut5TgweFsGmWH02QbdlluKVZIlpts1+RiYm015nhtsLtM4ioBqmdcP3djjUwmGS/IRCjMyxVhpj4L3R24YYQ+KK9someVqPVjYk27EvdjY/oxNlhCS3jUHPWCQmgLxrUJE3q+cSghA5jUbaiH9qcjxXfCorHRcKSPxLzq2B1UF7sCrLwEcbjO2rGDvSHRdBONAXDaNFYMUiOejMKpoDh8rrGQMqlVsqS53m8r6x+uFxtNYYc2HpiwFSbIw780JE94c+mV9r7lS1SXfMxY7jETsRgHOcOUgYk9leOrNnGdmdNqKymiNXAW801L4ZPxvHciCQn3f4hpHWmNKrPaj8iH1LWXVbpqPdRxusoUNOw0BGsXQg3uYv/YDx8YOfy/lrLCpfjOPgxeUjG0V1oq9+iptItzWp+O6oLmIcxR3xmVFveCUKg7lA3YOuEnNwAkxvqaIwzsJXDeop0hLEHByxz2Sp9SENLPgfk2UmU9pg7PsHFHZ/ylRyKxTz6vzfYehjS9SOb6sBT3fuVZE28OvUlA+bF7CooZrVQrazqtOH77Wz/ay9tI680LK65dp+zOZatZaF+eEaOY/tXkgBTDv0gQr0NM/0Khy+CuWVhH0h2bG9xgGkIpoGZVrd0zFvdKWaXPKwqI+9umBO7w1W9zUx8+bYzIZ/mIP9Cz/eT+XnQZ+Ig6KgEdKiVdWzy9LnEejZ2BiXRChuLhdNRB/Wo6ZgszVVgAzX6oz79DBagZz2R23DGIGUch7EYt7lmI55hS2FyC0f1h44O4Cv123RWfKzvH/eIpoZJPPOmrGvsTFyuJp2vQ/6rEkXNHr1qHZJt3Nn1rWDpRiXOnHCijZYBCUyVNN+4IsR3wFtFVT5dXvgo5a6N3tR6XEXT MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 504e6ab5-e25c-470d-40aa-08dc330ab11c X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:26:59.3438 (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: xak49gg/BDJOkei2EqwJE3gN9AIjCDm8MB0Ux2vXt4cXpQrE2+cVCODhPisV2OmHvxEhKeivSFVYdhUXG4Uvpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR83MB0407 X-Spam-Status: No, score=-10.1 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From 5cab07f01f66ba162b7d542e1a61c96f49942331 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Tue, 20 Feb 2024 15:32:08 +0100 Subject: [PATCH v1 02/13] aarch64: The aarch64-w64-mingw32 target implements the MS ABI Two ABIs for aarch64 have been defined for different platforms. gcc/ChangeLog: * config/aarch64/aarch64-opts.h (enum calling_abi): Define two ABIs. --- gcc/config/aarch64/aarch64-opts.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/config/aarch64/aarch64-opts.h b/gcc/config/aarch64/aarch64-opts.h index a05c0d3ded1..77e3eae9595 100644 --- a/gcc/config/aarch64/aarch64-opts.h +++ b/gcc/config/aarch64/aarch64-opts.h @@ -131,4 +131,11 @@ enum aarch64_early_ra_scope { AARCH64_EARLY_RA_NONE }; +/* Available call ABIs. */ +enum calling_abi +{ + AARCH64_EABI = 0, + MS_ABI = 1 +}; + #endif From patchwork Wed Feb 21 18:30:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86183 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3C5B73858419 for ; Wed, 21 Feb 2024 18:31:02 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2091.outbound.protection.outlook.com [40.107.14.91]) by sourceware.org (Postfix) with ESMTPS id C29E73858D1E for ; Wed, 21 Feb 2024 18:30:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C29E73858D1E 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 C29E73858D1E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.14.91 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540236; cv=pass; b=xp9og+H+cd2pY0ykQqdFeYLBjrOm0FhGh1oYVOIRE5nyFdCmQSUZ7Wu2xUWpnMWNzJs0HUKwzlhIxbPZ4pjlgRWGocw+7YCpN8WIZ9u80QHMD/6yYuss0esxYIurtM2vT/9Gszc7C3RcGrsOQq/JbM9+kv6w6qYMv6lrU/AJei8= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540236; c=relaxed/simple; bh=J1sqMFJ6NkWLUWcAgLdrKDHDIL2NaioE5LWY8NZuaXk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=v4rUAKCYtS+DTeMDHK8sN0g1rY6u/hbbO/C9Xe3iP8UsRa/V2y91oFt4z6arahwBRPRUsk45gNVuFgZ+fs3yLmU3UHx6gVJkZVHvg5R5RKRenCPESPAwLzyCOwk2sd6lhSTK46LB0eWUI/V4cQ3gWHnP0N6x+yuSFOacPXxQSeY= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E9y4GKVOGP7r9MZ4YVnKoYj/oFYgXFeCll/3HOPSCiznWNA8rkRRRIM6PiW763QQYYmUxXLK7xFI5IxCSv62OVRMATIt6m5xuBuyA1l672aZpUOnC6d4bXKY2yxAuuwfa6582ewmV7MDt3N9eJjHpBExTz1ZTsLbgtLH06i21kTrUnM4DJTd1U1IGBv28nyDVsG7a9bkTfnt3+uHuGBe6NWFH8Ga8Ma/fiKNZhI0PNuLen7E1Q4ddSLUxkmEctWMewLEMoV8UAW2fUi0JGaZ4FbNe+qVXXdzG0Lt++IMwdimNN/Z64ksv1wWNccRUDQPQpSrof6UC4+XsSAKLqw/sw== 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=sm/MckLn5scTZxBUjVpZAOxlqoqYIlKS0+UfdTQopuw=; b=bgcy89ws0kzJKO1UXctDvs7/kqSpW47huMDnnayULZBRrC9Bvc525dOf/rdwm8D1YOPMyBARQhpsczBA13/Qi4nFbRY0pgh7/Li3Eec8IqSuCsYFMgubKQ4qkjopSnTxtsNcYnXzWtwP15uvFMzGCgtMsQbK+kINsbz1fQxViXsaRMYMP+PwfihZQG4F4CYJMj/KtTKIBDaelUGcH4zjnuKwU8XAS8vPUMEbP5h/74pKMIhNWxDhoAEUfLHdcYONbhVfGu5buo1jwB8ax3D/MVt43HySw97xtx129XqgNEYoTdABY8+gJVES9UnH16tKyJeo8v7Je6xpbgsmlSdCNQ== 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=sm/MckLn5scTZxBUjVpZAOxlqoqYIlKS0+UfdTQopuw=; b=T2N6TtrQFTFWfcj8W/jnd4zSK+bZGP/5/x5Jf71WbYZr9GC1ZSNs5t3KuGRVFRQ6S8F2sf4j1S0gQf+PyOdymsg9+QhN6xcJMQzkuHhNMVW+LINyY6eUPhZ7zAKLcgBHRyt4aEypIqAwuB1lG4tY+mXjyUb/42zno1Zz1TUF8YU= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBAPR83MB0407.EURPRD83.prod.outlook.com (2603:10a6:10:17c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:30:29 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:30:29 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 03/13] aarch64: Mark x18 register as a fixed register for MS ABI Thread-Topic: [PATCH v1 03/13] aarch64: Mark x18 register as a fixed register for MS ABI Thread-Index: AQHaZPQLWVtNSLkAFEiBQ0RhJkcz9A== Date: Wed, 21 Feb 2024 18:30:29 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBAPR83MB0407:EE_ x-ms-office365-filtering-correlation-id: c0cb1a32-7b13-48b9-385b-08dc330b2e4f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iuiy6SbBiy8rWR+tPcwbGijdyMAWHYTs0nP9r5wVrwdKrP35/SLHPcCHPGXGqzT0p/uSJpSwAqf5dE0zE9l7nymgaFmYA6ZtuEWrKwJJzUCLI9b/BZrDynd1U9QAFif0gqmnNU2w1yjtkwRYExrnZIktcaROByAS8r1pFSfbIgA8Ih1mLYJIxpppH60tSIQfNRPupm4wwH+7xTI8g6lhIM1GLWIvW3zrpBmqp7/FeifxSljUJg56zZVvpT+P8Cx8t8jvVemb6g2L6wPb1wkh5sxuwCou6iJTAsZN+k5s8tq4sUJsTXCpPAaeE9bzqiba+ju4ES9y/NvOePRmM//3+WmQFOhT3l1oiWMdvNev1SI= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: hBbj61PnficS1zOuJAkISvCREnUitI9KUcnFrMkGhy6F/jlV0gdzryErRuQ9HobYBy0xNhHQbr52E0MTsS6NPF8bCVfqW7CQH7/WOxvayjmCrW5az9ZNujFtrYJXHQmrcc28fMl/oac5uhz5eX66KBQva3oUbCo9UYigqkYmqa/EAxx805qB8JP4m8N/yqzVuKQeLYK0qQbQZwMrClRyq4569xtSkghgCtFMnEqxfcJuBy1E4NUX9okQuPuvBRk1OSTBNCau06+hdMOCDJaht+bqYySTHb7/TUfdSICcQzbr5mVWvjwnfx30WJM43O7uuO3KSPrtx7tqQivEY4t4rUEzKJ34A1FhL4CnT4FEh2qHIr9BCskrWTlAz+KdNqu9WwooYzVBc93DestlaKyMLVS1YlSBKn9O1GzDbG+sTsOTWD5vjvos8URAT8RY9dXpNvUTcUFhQ624rJ3L4tKdO7El4P8quywmNysXGL9elyXNnV3ivO1QQU7zBRMqVUMju6ouLoYBA25zNqrpTsoDRszqJsEnsZeUAaOyQwYjS220yVCnBvAeUzymFwLYVz2TaLlxX73tD1bNFCo09uel8Lmdy/GYvZIWbOdxCTIbJYZolAobaf0c6xSW8Uua6Y0YIvjO+AyddriZvN3+4Z2Nt+QtHuRvZHCTjVle0hRFBaBUSpYVmpqzjoL4Bw0E1O/UVc50YwVUVa6D7vNGp0vBs48com2hJXtQHSNBHZj5+sSxf2w6sLUyDJdvmpKrupzz8nzzJ8RN9hKkl1j9LrjXlhNPZx2xTimcRwe8legRThN+6c8FTM6sbM1k01MdSF39ItGuGSdCb7X7bldxBNMriX9pajf3QYG3vioZmYiywPA16XSnEsxIR+G+ZW0qYZegWQNBiQ7IzmIO9q1wwd2ZKEOwm2GheolixMgsKDlgAnQ/RFz1y+nCDtckGEjy7n7IBrGidU/1BpJqFuhaiATAx9RDQ2yzomOMLjirJjn8ycqhiXNnb5b2cqKS5NYF2rQ1Vdr9y2bmNlrzuBJ3SS15wtHq0cOD6Z6Jzxnr0lyz9q0LXZh8HnO02UYcjVTJbhlmQkL/Mk6Ka6ikTh5wxc8FBqdePkV52LjTs8bQB56iT50ajRL0Gedcc8NVmGNZ5oIynSLNDExZ7ydPMc0fU79kFSvejxk/VBmfqJl5U7eRAYXrc8k6uBWi6056wihvDWSUC8MlCcQy23Q9yjVOyIKa0DkfpFPLDmQNjFlHIQYVqaixBjS0Z6yK1YHS3w1fF8D9mo5o7fcow34by4LMoui6ONaWtW4DFi0GmMv5wqV94wUPJF/v8YM2J90UU0G+1qFImO3zhIicnBqD0V/PZKaaQrvKOPCAzasq6AAgcmm2wyfCS4oKB9LZHwtRSWIzbfdEQ5HSEZFHqaHVS9RsmJnNHkn45kpaSYwz5TN7GiV8Plh4jHpLZANdxzALKadZzG4fnJR41/A+z10EpixmrUlUO6TZLTXE2ihSRt8ToJa5GNZDS8hkjhU7PUox3m+g6o3kryrCTvDe0542hgmV6C5qgm4SDSn8psCnsvCoU7qHz64bKSbIY5WCL9qeuA9PnE5W MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c0cb1a32-7b13-48b9-385b-08dc330b2e4f X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:30:29.4096 (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: EzDuE+bscAJr2xN0exSCC2GO3FoxshmxU/ji6nhFhXD/ZkFC40taCbwb6+BYi8pJPvcQiGUfFum5KmBEeR9vFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR83MB0407 X-Spam-Status: No, score=-10.6 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From 72ca3f49e3eef9b18946b8d4e77019c1441e1a97 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Tue, 20 Feb 2024 15:30:33 +0100 Subject: [PATCH v1 03/13] aarch64: Mark x18 register as a fixed register for MS ABI Define the MS ABI for aarch64-w64-mingw32. Adjust FIXED_REGISTERS and STATIC_CHAIN_REGNUM for different ABIs. The X18 register is reserved on Windows for the TEB. gcc/ChangeLog: * config.gcc: Define TARGET_ARM64_MS_ABI when Arm64 MS ABI is used. * config/aarch64/aarch64.h (FIXED_X18): Define if X18 regsiter is fixed. (CALL_USED_X18): Define if X18 register is call used. (FIXED_REGISTERS): Adjust FIXED_REGISTERS for different ABIs. (STATIC_CHAIN_REGNUM): Define STATIC_CHAIN_REGNUM acording to ABI. --- gcc/config.gcc | 1 + gcc/config/aarch64/aarch64.h | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index 092a091595d..2a9e4c44f50 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1276,6 +1276,7 @@ aarch64*-*-mingw*) default_use_cxa_atexit=yes need_64bit_isa=yes user_headers_inc_next_post="${user_headers_inc_next_post} float.h" + tm_defines="${tm_defines} TARGET_ARM64_MS_ABI=1" ;; aarch64*-wrs-vxworks*) tm_file="${tm_file} elfos.h aarch64/aarch64-elf.h" diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 45e901cda64..36916e7a97d 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -536,11 +536,20 @@ constexpr auto AARCH64_FL_DEFAULT_ISA_MODE = AARCH64_FL_SM_OFF; register. GCC internally uses the poly_int variable aarch64_sve_vg instead. */ +/* X18 reserved for the TEB on Windows. */ +#ifdef TARGET_ARM64_MS_ABI +# define FIXED_X18 1 +# define CALL_USED_X18 0 +#else +# define FIXED_X18 0 +# define CALL_USED_X18 1 +#endif + #define FIXED_REGISTERS \ { \ 0, 0, 0, 0, 0, 0, 0, 0, /* R0 - R7 */ \ 0, 0, 0, 0, 0, 0, 0, 0, /* R8 - R15 */ \ - 0, 0, 0, 0, 0, 0, 0, 0, /* R16 - R23 */ \ + 0, 0, FIXED_X18, 0, 0, 0, 0, 0, /* R16 - R23. */ \ 0, 0, 0, 0, 0, 1, 0, 1, /* R24 - R30, SP */ \ 0, 0, 0, 0, 0, 0, 0, 0, /* V0 - V7 */ \ 0, 0, 0, 0, 0, 0, 0, 0, /* V8 - V15 */ \ @@ -564,7 +573,7 @@ constexpr auto AARCH64_FL_DEFAULT_ISA_MODE = AARCH64_FL_SM_OFF; { \ 1, 1, 1, 1, 1, 1, 1, 1, /* R0 - R7 */ \ 1, 1, 1, 1, 1, 1, 1, 1, /* R8 - R15 */ \ - 1, 1, 1, 0, 0, 0, 0, 0, /* R16 - R23 */ \ + 1, 1, CALL_USED_X18, 0, 0, 0, 0, 0, /* R16 - R23. */ \ 0, 0, 0, 0, 0, 1, 1, 1, /* R24 - R30, SP */ \ 1, 1, 1, 1, 1, 1, 1, 1, /* V0 - V7 */ \ 0, 0, 0, 0, 0, 0, 0, 0, /* V8 - V15 */ \ @@ -642,7 +651,11 @@ constexpr auto AARCH64_FL_DEFAULT_ISA_MODE = AARCH64_FL_SM_OFF; uses alloca. */ #define EXIT_IGNORE_STACK (cfun->calls_alloca) -#define STATIC_CHAIN_REGNUM R18_REGNUM +#ifdef TARGET_ARM64_MS_ABI +# define STATIC_CHAIN_REGNUM R17_REGNUM +#else +# define STATIC_CHAIN_REGNUM R18_REGNUM +#endif #define HARD_FRAME_POINTER_REGNUM R29_REGNUM #define FRAME_POINTER_REGNUM SFP_REGNUM #define STACK_POINTER_REGNUM SP_REGNUM From patchwork Wed Feb 21 18:32:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86184 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A97BA3858C52 for ; Wed, 21 Feb 2024 18:33:14 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2119.outbound.protection.outlook.com [40.107.13.119]) by sourceware.org (Postfix) with ESMTPS id 4642A3858416 for ; Wed, 21 Feb 2024 18:32:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4642A3858416 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 4642A3858416 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.13.119 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540365; cv=pass; b=WEK4YpE4sgZIK/FlFKXE0miI37JoVgw3+JExj1DaKheVikBT/iWYNrnPxLwjmR7NViw3Kboi2rspBKN5wpN6LgHpBXK5BbQOq/Ec0mH24VQe3Kd8tmsgmXR5lCsdOYvZJv8S9S+CBr0VZHhxy/SFu6y+ucJZL/Soj6kDmXqG4pA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540365; c=relaxed/simple; bh=bPKStOBJ/cRIdLdb61r0IsSZ1004Z4BCZ9vuJmbg4ao=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Uobu6TUU/4KnAzYWo5DD7KoL3MpRtoFR5K/Bvi7UtZ8TIXa9bqvqcb4iUFNaw/cgNKaqKpThNeOPkDpN5OqccmkOOq1CL/7VWvhg3g3YxRFng1o1lwUbjwO1uklozEEVsk71tqDUGD2OH66Yn4NRHHp623k6+L/xyhRunVLA6v8= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ewaOKYjFoFvhA69N97I+0ibOGyeF+qA7JKeEVoKbnNWRwRILEkKi/wtRvHwQOo8KQI8cHtQNNWeh6K6bwGxLJoH7RPLe7Cf0Wo7i5Yf3fhw6w3JYkSn6oPyG01oFr8Z2N0PWBGLl+kKkzvVZEKPo7UV6oznDhHF7iyOG+ONbziOMC3c/4Cw0qhLvGRFGQ6HSqf9Oi1ZIjsH3slYc5Nq7zXRYMDYTu5GImvD2/8ggaoYTfiE1WFoMVide63MZoEXgLaytK9B9FMoWP+Bekla6Cdg5Bzhqrt+xFgfj+Er18uxGmiOUpVWrVXZZKU2kzuum3vNGF4pdGr6U74pNTWyjDA== 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=gxcDOX4DukXFtQeTeStEb0kDsPeywceNBjSgFdWM/XM=; b=DyvIG6JeVQJT+sf0wZmoRl3TEwIzJlyh8KkRCgz56djnPkNQ1MljTS3j/2vpQRHsfnl3C3IWv1HyXFdY61U1nRHq9elYbeXW61AWLrDm79W0xtjdrQ9WmiIAwXAQiotqiqTdOzNjH/21f4Fh+gC+dMbstNHM02SAm5CYRkJznbP9kDM3k2ePjVKAD8p5y787Gbj1sTfAIu/XOUtmITf372S8fvUJWRGPtc9X4fwPybYQFOaKetiw8oxSgTDdbCbMx/TbYQNhZQRtpYXhZmsSL5qYfJq+O/0DJEm6iCH0jpwr9iNqXoTKGcB60WEPhHMokHHWKbjYxQAlMlq6HbNxTQ== 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=gxcDOX4DukXFtQeTeStEb0kDsPeywceNBjSgFdWM/XM=; b=evSMaIcx6roXa6zQICTe3ztY/2SxgjT3JNc3Rri9IPsM2B4zgLrtBhKQHhyPdAHJPJxtQ1a8qlESN/BpfDLb/My0DkT9pkpOl1ih79w51hjnm9g0BNlkPS/mxNi2z2CJUOCXWeT+/tzXDUvTImVxBSh89qh89wp7wQWZQ3BIY3g= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBAPR83MB0407.EURPRD83.prod.outlook.com (2603:10a6:10:17c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:32:27 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:32:22 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 04/13] aarch64: Add aarch64-w64-mingw32 COFF Thread-Topic: [PATCH v1 04/13] aarch64: Add aarch64-w64-mingw32 COFF Thread-Index: AQHaZPRPILkz9/YZtk+DiEceJBqK3g== Date: Wed, 21 Feb 2024 18:32:22 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBAPR83MB0407:EE_ x-ms-office365-filtering-correlation-id: 55060e99-749d-45e3-b06c-08dc330b71a8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pf5SX1LY6DyE2PnzaS3aaeaTeFkgCSb47TmT4BYcT+LNS0SPJaTH2pNXswAxVX6U098Hto+M5mDL6qaE96WUwDw+qy7P3O6HfwPr6c+9qUSqKnsHWFtGllwY5V5OMG3JxWVuf+j70s2cA7skkzW0XPuj3HtuZh245PC7UKsWOiFqwgd6q37fLR6Vz5W8tew0Bztj0poRUrVwULeEZTxFtuBchNBqqj9X1hSHZpdpB/KyXGzv553Auo9vuH0PDk8Db0SkSNfLUIQfMHleNc3unFL3I3NRr/Z8K2wo/Rnvchf2vPTJu91Hfd65Su5ygUmOL9l54riu2Ac7rJyaFJueX2i+w53ve4oPaU5i/CcT3AM= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: yn+gwGOe9Io+HDb2YdVADVaivoqcKPLA0r2joT8S/DR1axrEOPyb4cw95bZCCCKRzVdsjgCkYwGE2lsYGxBCdEuZl3bP5X7/aK3idYWOAY4PJuCbyqR40gAFnt7F3cxsoKuKcVJMZ4NsyIB0y9KEwHHmCIpqQ/2OgY11X0k5jRKpH+4CmxBW7zThl1ZagDpyBJwS9jSvTwQV6khi4NzVPCIZljYiig0R5a282lYkXx0R5i0KUZNWBkWvtQuQ4CuoBsteJXvW1GGTUNx1oGKHMFDU32uXkcnildEXpLpGvovDCKKHlo3DvMEKjOqomdxFS+VWgRWsT5Bv2rxGCPsfLJI5nbNws1rcO4GppEKXZOxto29Zu4/BjMmtEfqonSwJjZbWkVpMLsgQXEVFz/IbyZ3Ke+ynwbMQlBu+RO1Tx8NWZuKivFTddKG+DgsH5bWbXxIeXnzUDbibbRKeEwyWWZ6I+Ppt8D/f1knVPWVLih6O+OZRFZrGV3icayX7uNWiSuwnbx4NyFXVKSQLKo0KPbK3Lx9upqbDfGJD7fqZVdOtuGM2mhPXnToSX2nufXhqeTsXI2Y29D2ge3/3f7x4q8+8TrzE4Q4hThiu+qLH2OhA7Q2WX1drbpHAbIDJv6EHfYxRvB7Dx5XFgjWpjMH9lqX0zu7f6EWDWuOIqudq2gEPmUIYN7WxR84EYnWarjnFH8EuFWPMpqXbQZy75rM3ZCgvv6HtbAjMSwNHH4rx2nMX52YWbFYJDI88JcIFfuh6EXvxmISTPDwpyzLMgeRx3Jz2m5pgBLIQSA+RSEBQLkQAD/fliMmzJlg+WfaBeUPa7fpLpiakwZHLQZQHP9VqnwmA09nxp+N6Gmk7f6kCCm2SH/V7w8NgOhIqzhEopBeI6n9oZnOOWD+shweBKsI/N9Pp8jXtcq8pb1PC3kfyo8r/0c7ErxttMp+nLSoXOvnoN5PeSTUVwvFnx5jk33Por2S/BqWouBwljwpPgcoXJHbYfDD5c0gIb8QbbFJziW7NaSYkIHaSPuLf0lNe2khdUXj+N3TthvJCXF+XO2xLQ9/nhJjiXp9rSHAD1Gh/smiVKimGWP+JkNRgXCvPsKvchDlLrSVRHJK9hvN2sWJaz0x+bdybNDdNNHNNEURffH3OiExekxmpBx9twPA0efiufQ6eH91Kk0Jjt6FVhxksZ5qa9QWp87d3pAsQCJAuBuYwt+4/anyQ5+IpPzgPg2MJ8sIbq4ZMq54J+mg6lod6aEUhjr5yTvU+TClN5dStGcUF0aC+dW3BPTJWx/pDgHS9TikiXEU9kVxiBsXtmjCxmhM+mp6FwMt7OmFQ7bcdLPX/3Nc8pk31ffTcXO8h7zPP/n9y1RaZuvS80gFccTkABpmDW46Wj4ESz0tUj8gbsiRSRBASOTd+a2TujAmxTIjSITpzkwueZnRbVaPRKVpSJEoV1j7d5DWumxI7Fm6hKZ9H9fPogNz/b4gIoe4xA8DP58ULugvbbgcWZFIJ0ZMclD8XInAeKtLfWmYQnrXU3j3YXjEzXWHMg4wcJjKvlScD4TMMLnEa2NalGJtAg+ov48/DADX9E4PP4xI1sD4gZ2YF MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55060e99-749d-45e3-b06c-08dc330b71a8 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:32:22.4284 (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: UtCZZQJZ7i7Ix8KsN9AjUsfwpGXfVemWMCBC2pp81E8hiv+YaPtA/WjcXvnRA4D1aMukgf7DO5ODYYXhKzjNFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR83MB0407 X-Spam-Status: No, score=-11.0 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From 55fd2a63afa9abb3543d714b6f5925efd2682e08 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Wed, 21 Feb 2024 12:20:46 +0100 Subject: [PATCH v1 04/13] aarch64: Add aarch64-w64-mingw32 COFF Define ASM specific for COFF format on AArch64. gcc/ChangeLog: * config.gcc: Add COFF format support definitions. * config/aarch64/aarch64-coff.h: New file. --- gcc/config.gcc | 1 + gcc/config/aarch64/aarch64-coff.h | 92 +++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 gcc/config/aarch64/aarch64-coff.h diff --git a/gcc/config.gcc b/gcc/config.gcc index 2a9e4c44f50..34c7be72fb6 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1264,6 +1264,7 @@ aarch64*-*-linux*) TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` ;; aarch64*-*-mingw*) + tm_file="${tm_file} aarch64/aarch64-coff.h" tmake_file="${tmake_file} aarch64/t-aarch64" case ${enable_threads} in "" | yes | win32) diff --git a/gcc/config/aarch64/aarch64-coff.h b/gcc/config/aarch64/aarch64-coff.h new file mode 100644 index 00000000000..d91bc36b67b --- /dev/null +++ b/gcc/config/aarch64/aarch64-coff.h @@ -0,0 +1,92 @@ +/* Machine description for AArch64 architecture. + Copyright (C) 2024 Free Software Foundation, Inc. + + This file is part of GCC. + + GCC is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + GCC is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GCC; see the file COPYING3. If not see + . */ + +#ifndef GCC_AARCH64_COFF_H +#define GCC_AARCH64_COFF_H + +#include "aarch64.h" + +#ifndef LOCAL_LABEL_PREFIX +# define LOCAL_LABEL_PREFIX "" +#endif + +/* Using long long breaks -ansi and -std=c90, so these will need to be + made conditional for an LLP64 ABI. */ +#undef SIZE_TYPE +#define SIZE_TYPE "long long unsigned int" + +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE "long long int" + +#define TARGET_64BIT 1 +#undef LONG_TYPE_SIZE +#define LONG_TYPE_SIZE 32 + +#ifndef ASM_GENERATE_INTERNAL_LABEL +# define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM) \ + sprintf (STRING, "*%s%s%u", LOCAL_LABEL_PREFIX, PREFIX, (unsigned int)(NUM)) +#endif + +#define ASM_OUTPUT_ALIGN(STREAM, POWER) \ + fprintf (STREAM, "\t.align\t%d\n", (int)POWER) + +/* Output a common block. */ +#ifndef ASM_OUTPUT_COMMON +# define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \ + { \ + fprintf (STREAM, "\t.comm\t"); \ + assemble_name (STREAM, NAME); \ + asm_fprintf (STREAM, ", %d, %d\n", \ + (int)(ROUNDED), (int)(SIZE)); \ + } +#endif + +/* Output a local common block. /bin/as can't do this, so hack a + `.space' into the bss segment. Note that this is *bad* practice, + which is guaranteed NOT to work since it doesn't define STATIC + COMMON space but merely STATIC BSS space. */ +#ifndef ASM_OUTPUT_ALIGNED_LOCAL +# define ASM_OUTPUT_ALIGNED_LOCAL(STREAM, NAME, SIZE, ALIGN) \ + { \ + switch_to_section (bss_section); \ + ASM_OUTPUT_ALIGN (STREAM, floor_log2 (ALIGN / BITS_PER_UNIT)); \ + ASM_OUTPUT_LABEL (STREAM, NAME); \ + fprintf (STREAM, "\t.space\t%d\n", (int)(SIZE)); \ + } +#endif + +#define ASM_OUTPUT_SKIP(STREAM, NBYTES) \ + fprintf (STREAM, "\t.space\t%d // skip\n", (int) (NBYTES)) + +#define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE) +#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL) + +#define TEXT_SECTION_ASM_OP "\t.text" +#define DATA_SECTION_ASM_OP "\t.data" +#define BSS_SECTION_ASM_OP "\t.bss" + +#define CTORS_SECTION_ASM_OP "\t.section\t.ctors, \"aw\"" +#define DTORS_SECTION_ASM_OP "\t.section\t.dtors, \"aw\"" + +#define GLOBAL_ASM_OP "\t.global\t" + +#undef SUPPORTS_INIT_PRIORITY +#define SUPPORTS_INIT_PRIORITY 0 + +#endif From patchwork Wed Feb 21 18:34:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86187 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 74C8B3858435 for ; Wed, 21 Feb 2024 18:38:04 +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-db8eur05on2105.outbound.protection.outlook.com [40.107.20.105]) by sourceware.org (Postfix) with ESMTPS id B3996385840E for ; Wed, 21 Feb 2024 18:34:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B3996385840E 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 B3996385840E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.20.105 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540490; cv=pass; b=MLWy68Egs2iqvez3bbo90ZzHFgkUc/0NHsPYjwDuYa3U1YBBYhSKfGA3TYmiZ4m09uPh3PBz57BV63M6m15Y/yDKZlzH8Wa3ImdSnQoKT2u34NWX6MlJs2DHzbMgqOQ8ifwNAIUGUfLUWFFVlf5a349++SkV1MADto7GCZ6bGXY= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540490; c=relaxed/simple; bh=2gKYrYXTaZam3tRNvx3vYDFrn2JgkMk29/UcLML4zBk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=IYPe+ubGx2aK9esCaw9SjF8iAKWa8B4+mc9r/jaZq7DeQyc18za0VgK+r9goZqqGe6xiPFPjtAgkj3y2+JnUCy+qJp54jNWEdKpQwUIv8+YFh7d1wyl98WP2t56NZ1rmGjxrmRupJoKZx57RfRdpiedZ4hkU5ntVSjxAu3VJXYE= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=esTwlTmYttqaVA3Vkn92jG55dTIef22ICAO0zNt7M6epr6/SfiSw/ZjZs0Jd4AZXdcNBePjiT0cvScK321wxWzBudHLiB1lSi47iu+Dy5SakYXUFPPfAwTfloWDLQ+kDBXM9ADxyCto3xUumMxtMUkslQLy2+GSRVqA1ROqo4mnDh+U6+9bSqy6gVH9sl+JUqLC6Pzrj/MoF3qvhP32ynFWGptgQB3g9mzlmHK/y/FaWibu0s56T4tOfYKHMtjUkU0ixhuUL8B2btauBFUzBHqKK68S8WPVtLS7Sx1WFrVDh+MiQQRyWuSFF7opG/qA7mnNOpLZUTC22+xs3HixRjg== 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=djUflxmTcQUleKyMynbf2ufpx4NJ0aHRheFKwKrXnBQ=; b=lKggc/+kITOnLKJWb7uIzjsU2Gk9M5waaRnPf312Kg0V5i3h3/0/uI9HVMEKUaet8eey0DgfJSGj7mwSpt/2yh/Qy//3lhy8bjymoY8jP7OhlA6h7MhVQ52nj51kwMwHEgkJI82xxjfaNQNpOUVodGrFjOmloXGxyzu+0h8xwTlSlMyD95oBZkKJEWcXc3Vcstcr+v0t7smQH3ZGtkRVZksqdWxTZ2XItO6UiV2zzMj+ID1uQNaIs0dUZGMOGM6cAMnMu9pulTS3jpxi8iQj373EYdvibc2ESYM4Cu51lO6ohJuYhI37Xi2OPplZhdQgTgi5R9NXdRGkznl/YDbdWw== 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=djUflxmTcQUleKyMynbf2ufpx4NJ0aHRheFKwKrXnBQ=; b=G1iwN0AehkL0WhKyOclLeVwTuogWqYBLRA0lhr7yacQ+RJGRuOea3SJEPh0B0HYDPqsL7SsvxiBr38muZLe7dkukEcJ/6r6iqGQKPnXMEOxNu4frTxEyzpNUDesLXbmuMrPBrrmPmtpcXPpL6gyY/xVGqlOxu8yRM+uGVEpxAcI= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBBPR83MB0614.EURPRD83.prod.outlook.com (2603:10a6:10:533::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:34:44 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:34:43 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 05/13] Reuse MinGW from i386 for AArch64 Thread-Topic: [PATCH v1 05/13] Reuse MinGW from i386 for AArch64 Thread-Index: AQHaZPSjKTtfzuEGB0ucKYjHwZ6deA== Date: Wed, 21 Feb 2024 18:34:43 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBBPR83MB0614:EE_ x-ms-office365-filtering-correlation-id: 71a8753a-fb8a-420b-b477-08dc330bc5b0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DBpyROotEWxN+wG7RLmGfQSd68FM41mzutv50+VtysKUigo4VXzQwCpl0jpV5y9qk7q+Vy1zTLZwqZMS7vRgKjFoFkDS1KqmRtOpSaiFlNDmCI9EULcnPzTTy9mmxBMiDixpjhVWIKtTBBWNjvCX7Vxr0wFGgSJm0JpNgGhBuTDa44BNbCQOPBB9bU24e5qlLubYSD0xkaGV1sDuMrBHs7JGGo6KowDcr6J2n3UNhMJKch5LU6yfswnkU/D6TgYmOmK+pAUfCZAXwKDL0Y2VbdJRXqF3KuNjpXc+fxnOVhevdJ76gytGOhy89KDV/RhAl1uWa9q53kAOfWqMhUM92J0aZYv8+3SnkCAjuJMUAtw= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: VkZUujGUU+cxhh0kKxL7rHyh1Tqje0L1Zd1pOFPgHDznwx+MEPxGaQuStiC4n9UsSLJO8Vv0Cj6iCOZLsf1k0SHYHpmAl8gmo3+Nrkab6eSPe70kZ3u3fabaphRPmX71RMAXrgtlTVALlDZ5+HdByy7uT2eVD291ZFEoN+uql55iOe78TFYj0eC6S7aat2jv7O+rB3lw50pg3ingTxlBJBrYoC/GON6rNA018OgNLLCs9ZhhHAA7PzwNGvYleL7RgAQLmC/SGdxXFB6kffF4lq2VqUSvgVdOvwn5WPJUJRxFYnqZEfMlCqr6Gia/JgPCnQClpKA9Gja8XJF6c0kW57N0vn3L/m2r+0gx0U5bw6cTj1Nlw6mMjFSYoEh89AYS3UmzrOw13O93xkPOhoZZHxmYFLV/UwSYCIgd6KwvCQEobG7b7/RUv/bTi1234ZO2fluItMN1rhkkEP95d7Z5/p02G+uTzkQKaeF3YMr1zXBWgU+CZJwqmEbLH/lmXmkWwCDfzNBUgvz4MDKDuOkmuIkIcdAN7CH59+EAphJ5syF53Q/sn2J9sBGE913KpeY8dO0TZW7uYkpj6RymNYkp4qXMN2XUkAD9KjtAI609VbvOYkYI7g24uYYzdsDVaz/fVDeyjFktfkC4LtDGdDRNmxqWgqCgR/Zd9gL+ElJRBWimOXLhUf4iPsdvgI3kmKaDdLaxvAgPg3i7rOvhlE7OU+0PCylelnbEW2gUBBorS47Pl2Wtnd94C2/M5ieAcaDl0bhIKpyXfvFIQFmb+oDG29pscYkvFS1AUH72MA+Te29u+UWJiCnP41odSyqEqWK3QI6jRRtwIH4Q5lpK8dNle0UqNSWTeKlMMBTPibZopJDvd3MijYr/umJIGun6ncMa1KZhmLXVvMtYLKkv7E4VdtgwgcyimaR5DS7NrrzC+lgIoapPWlsLH4ROagshg5hxjozJuos+xQU4JW98pNWta67pJazwEODqYitKXqjpW7oIPIxk97zhjeHkqw5XKuRO8BK0NKot1C3TwejwWWJrqc9dHjyKqaVyS5UMci9mRonwzKOasaY16S0PniUOrCnWE0NPXaKsc4W8H2iY+ao4XjMQ3U+CJPp1vYdQgnNh44YHLtCpQUR27+Vgv+Rk9shO0cbbNBGJierjpQOzMTeAeKPt0WcDYU+1p6HJesHaQnmjVPdg4v+JoR72HmdYPYnANj3zxx067x+q1gtvYczcTokLMMLzfQr7/pPBxZ+TChIcEAN651KaUKJ0lMODsmIvk70XD7k11gcC25sLegCGMgI1jbx9lZQnlGwyqCK1UMjK+hhQtUzqCByaQv9GUCjkK5BM1zp8um/ipVyqeSYRzJp3HJkLt4BJOSnqiLygWm+bt6i1LnwXB2StUqd+2UVp1S9qIuMrivnn8RG98C5BGRz92KB5T+6QDZ0AfuUVma6/4bM0YCELKnjppx9/s5C3ifq315UjqdtoFZokLhFH7fTRh6bcAeZDrDYZD7yqiWDkPNDQItTh6ksp073OseiaaUEQBw5Vy9xYJPh0H/n+moYT9DGfgVsenpX5W1om3acB578xJ1xOkmqA1/Avh5VT MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71a8753a-fb8a-420b-b477-08dc330bc5b0 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:34:43.3533 (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: 5aSnZDI+CQeHzvAppNbBVMVU8nYQktabXX9PaVWNqonB0fOHdRSUzieEavfQe2LUGuooXExr+iXp2e87DfeitA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR83MB0614 X-Spam-Status: No, score=-11.0 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_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From 408ca45f7c5c6e58208a7b8004f764dc0c1afdd3 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Tue, 20 Feb 2024 18:15:27 +0100 Subject: [PATCH v1 05/13] Reuse MinGW from i386 for AArch64 This patch creates a new config/mingw directory to share MinGW related definitions, and moves there the corresponding existing files from config/i386. It also makes uses of them on the new aarch64-w64-mingw32 target. gcc/ChangeLog: * config.gcc: Adjust targets after moving MinGW related files from i386 to mingw folder. * config/i386/cygming.opt: Moved to... * config/mingw/cygming.opt: ...here. * config/i386/cygming.opt.urls: Moved to... * config/mingw/cygming.opt.urls: ...here. * config/i386/cygwin-d.cc: Moved to... * config/mingw/cygwin-d.cc: ...here. * config/i386/mingw-stdint.h: Moved to... * config/mingw/mingw-stdint.h: ...here. * config/i386/mingw.opt: Moved to... * config/mingw/mingw.opt: ...here. * config/i386/mingw.opt.urls: Moved to... * config/mingw/mingw.opt.urls: ...here. * config/i386/mingw32.h: Moved to... * config/mingw/mingw32.h: ...here. * config/i386/msformat-c.cc: Moved to... * config/mingw/msformat-c.cc: ...here. * config/i386/t-cygming: Moved to... * config/mingw/t-cygming: ...here and updated. * config/i386/winnt-cxx.cc: Moved to... * config/mingw/winnt-cxx.cc: ...here. * config/i386/winnt-d.cc: Moved to... * config/mingw/winnt-d.cc: ...here. * config/i386/winnt-stubs.cc: Moved to... * config/mingw/winnt-stubs.cc: ...here. * config/i386/winnt.cc: Moved to... * config/mingw/winnt.cc: ...here. --- gcc/config.gcc | 25 ++++++++++++--------- gcc/config/{i386 => mingw}/cygming.opt | 0 gcc/config/{i386 => mingw}/cygming.opt.urls | 0 gcc/config/{i386 => mingw}/cygwin-d.cc | 0 gcc/config/{i386 => mingw}/mingw-stdint.h | 0 gcc/config/{i386 => mingw}/mingw.opt | 0 gcc/config/{i386 => mingw}/mingw.opt.urls | 0 gcc/config/{i386 => mingw}/mingw32.h | 0 gcc/config/{i386 => mingw}/msformat-c.cc | 0 gcc/config/{i386 => mingw}/t-cygming | 23 ++++++++++--------- gcc/config/{i386 => mingw}/winnt-cxx.cc | 0 gcc/config/{i386 => mingw}/winnt-d.cc | 0 gcc/config/{i386 => mingw}/winnt-stubs.cc | 0 gcc/config/{i386 => mingw}/winnt.cc | 0 14 files changed, 27 insertions(+), 21 deletions(-) rename gcc/config/{i386 => mingw}/cygming.opt (100%) rename gcc/config/{i386 => mingw}/cygming.opt.urls (100%) rename gcc/config/{i386 => mingw}/cygwin-d.cc (100%) rename gcc/config/{i386 => mingw}/mingw-stdint.h (100%) rename gcc/config/{i386 => mingw}/mingw.opt (100%) rename gcc/config/{i386 => mingw}/mingw.opt.urls (100%) rename gcc/config/{i386 => mingw}/mingw32.h (100%) rename gcc/config/{i386 => mingw}/msformat-c.cc (100%) rename gcc/config/{i386 => mingw}/t-cygming (73%) rename gcc/config/{i386 => mingw}/winnt-cxx.cc (100%) rename gcc/config/{i386 => mingw}/winnt-d.cc (100%) rename gcc/config/{i386 => mingw}/winnt-stubs.cc (100%) rename gcc/config/{i386 => mingw}/winnt.cc (100%) diff --git a/gcc/config.gcc b/gcc/config.gcc index 34c7be72fb6..498ee702607 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1265,7 +1265,10 @@ aarch64*-*-linux*) ;; aarch64*-*-mingw*) tm_file="${tm_file} aarch64/aarch64-coff.h" + tm_file="${tm_file} mingw/mingw32.h" + tm_file="${tm_file} mingw/mingw-stdint.h" tmake_file="${tmake_file} aarch64/t-aarch64" + target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc" case ${enable_threads} in "" | yes | win32) thread_file='win32' @@ -2161,9 +2164,9 @@ i[4567]86-wrs-vxworks*|x86_64-wrs-vxworks7*) i[34567]86-*-cygwin*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/cygming.h i386/cygwin.h i386/cygwin-stdint.h" xm_file=i386/xm-cygwin.h - tmake_file="${tmake_file} i386/t-cygming t-slibgcc" - target_gtfiles="$target_gtfiles \$(srcdir)/config/i386/winnt.cc" - extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt" + tmake_file="${tmake_file} mingw/t-cygming t-slibgcc" + target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc" + extra_options="${extra_options} mingw/cygming.opt i386/cygwin.opt" extra_objs="${extra_objs} winnt.o winnt-stubs.o" c_target_objs="${c_target_objs} msformat-c.o" cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" @@ -2179,9 +2182,9 @@ x86_64-*-cygwin*) need_64bit_isa=yes tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/cygming.h i386/cygwin.h i386/cygwin-w64.h i386/cygwin-stdint.h" xm_file=i386/xm-cygwin.h - tmake_file="${tmake_file} i386/t-cygming t-slibgcc" - target_gtfiles="$target_gtfiles \$(srcdir)/config/i386/winnt.cc" - extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt" + tmake_file="${tmake_file} mingw/t-cygming t-slibgcc" + target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc" + extra_options="${extra_options} mingw/cygming.opt i386/cygwin.opt" extra_objs="${extra_objs} winnt.o winnt-stubs.o" c_target_objs="${c_target_objs} msformat-c.o" cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" @@ -2217,7 +2220,7 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) if test x$enable_threads = xmcf ; then tm_file="${tm_file} i386/mingw-mcfgthread.h" fi - tm_file="${tm_file} i386/mingw32.h" + tm_file="${tm_file} mingw/mingw32.h" # This makes the logic if mingw's or the w64 feature set has to be used case ${target} in *-w64-*) @@ -2246,8 +2249,8 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) *) ;; esac - tm_file="${tm_file} i386/mingw-stdint.h" - tmake_file="${tmake_file} t-winnt i386/t-cygming t-slibgcc" + tm_file="${tm_file} mingw/mingw-stdint.h" + tmake_file="${tmake_file} t-winnt mingw/t-cygming t-slibgcc" case ${target} in x86_64-w64-*) tmake_file="${tmake_file} i386/t-mingw-w64" @@ -2257,8 +2260,8 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) ;; esac native_system_header_dir=/mingw/include - target_gtfiles="$target_gtfiles \$(srcdir)/config/i386/winnt.cc" - extra_options="${extra_options} i386/cygming.opt i386/mingw.opt" + target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc" + extra_options="${extra_options} mingw/cygming.opt mingw/mingw.opt" case ${target} in *-w64-*) extra_options="${extra_options} i386/mingw-w64.opt" diff --git a/gcc/config/i386/cygming.opt b/gcc/config/mingw/cygming.opt similarity index 100% rename from gcc/config/i386/cygming.opt rename to gcc/config/mingw/cygming.opt diff --git a/gcc/config/i386/cygming.opt.urls b/gcc/config/mingw/cygming.opt.urls similarity index 100% rename from gcc/config/i386/cygming.opt.urls rename to gcc/config/mingw/cygming.opt.urls diff --git a/gcc/config/i386/cygwin-d.cc b/gcc/config/mingw/cygwin-d.cc similarity index 100% rename from gcc/config/i386/cygwin-d.cc rename to gcc/config/mingw/cygwin-d.cc diff --git a/gcc/config/i386/mingw-stdint.h b/gcc/config/mingw/mingw-stdint.h similarity index 100% rename from gcc/config/i386/mingw-stdint.h rename to gcc/config/mingw/mingw-stdint.h diff --git a/gcc/config/i386/mingw.opt b/gcc/config/mingw/mingw.opt similarity index 100% rename from gcc/config/i386/mingw.opt rename to gcc/config/mingw/mingw.opt diff --git a/gcc/config/i386/mingw.opt.urls b/gcc/config/mingw/mingw.opt.urls similarity index 100% rename from gcc/config/i386/mingw.opt.urls rename to gcc/config/mingw/mingw.opt.urls diff --git a/gcc/config/i386/mingw32.h b/gcc/config/mingw/mingw32.h similarity index 100% rename from gcc/config/i386/mingw32.h rename to gcc/config/mingw/mingw32.h diff --git a/gcc/config/i386/msformat-c.cc b/gcc/config/mingw/msformat-c.cc similarity index 100% rename from gcc/config/i386/msformat-c.cc rename to gcc/config/mingw/msformat-c.cc diff --git a/gcc/config/i386/t-cygming b/gcc/config/mingw/t-cygming similarity index 73% rename from gcc/config/i386/t-cygming rename to gcc/config/mingw/t-cygming index af01f69acd1..f5de941c8e5 100644 --- a/gcc/config/i386/t-cygming +++ b/gcc/config/mingw/t-cygming @@ -20,37 +20,40 @@ # doing the build, it may not be installed yet. LIMITS_H_TEST = true -winnt.o: $(srcdir)/config/i386/winnt.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h \ +winnt.o: $(srcdir)/config/mingw/winnt.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \ $(TM_P_H) $(HASH_TABLE_H) $(GGC_H) $(LTO_STREAMER_H) $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(srcdir)/config/i386/winnt.cc + $(srcdir)/config/mingw/winnt.cc -winnt-cxx.o: $(srcdir)/config/i386/winnt-cxx.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h \ +winnt-cxx.o: $(srcdir)/config/mingw/winnt-cxx.cc $(CONFIG_H) $(SYSTEM_H) \ + coretypes.h \ $(TM_H) $(TREE_H) flags.h \ $(TM_P_H) $(HASHTAB_H) $(GGC_H) $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(srcdir)/config/i386/winnt-cxx.cc + $(srcdir)/config/mingw/winnt-cxx.cc -winnt-stubs.o: $(srcdir)/config/i386/winnt-stubs.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h \ +winnt-stubs.o: $(srcdir)/config/mingw/winnt-stubs.cc $(CONFIG_H) $(SYSTEM_H) \ + coretypes.h \ $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \ $(TM_P_H) $(HASHTAB_H) $(GGC_H) $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(srcdir)/config/i386/winnt-stubs.cc + $(srcdir)/config/mingw/winnt-stubs.cc -cygwin-d.o: $(srcdir)/config/i386/cygwin-d.cc +cygwin-d.o: $(srcdir)/config/mingw/cygwin-d.cc $(COMPILE) $< $(POSTCOMPILE) -winnt-d.o: $(srcdir)/config/i386/winnt-d.cc +winnt-d.o: $(srcdir)/config/mingw/winnt-d.cc $(COMPILE) $< $(POSTCOMPILE) -msformat-c.o: $(srcdir)/config/i386/msformat-c.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h \ +msformat-c.o: $(srcdir)/config/mingw/msformat-c.cc $(CONFIG_H) $(SYSTEM_H) \ + coretypes.h \ $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \ $(TM_P_H) $(HASHTAB_H) $(GGC_H) $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(srcdir)/config/i386/msformat-c.cc + $(srcdir)/config/mingw/msformat-c.cc STMP_FIXINC=stmp-fixinc diff --git a/gcc/config/i386/winnt-cxx.cc b/gcc/config/mingw/winnt-cxx.cc similarity index 100% rename from gcc/config/i386/winnt-cxx.cc rename to gcc/config/mingw/winnt-cxx.cc diff --git a/gcc/config/i386/winnt-d.cc b/gcc/config/mingw/winnt-d.cc similarity index 100% rename from gcc/config/i386/winnt-d.cc rename to gcc/config/mingw/winnt-d.cc diff --git a/gcc/config/i386/winnt-stubs.cc b/gcc/config/mingw/winnt-stubs.cc similarity index 100% rename from gcc/config/i386/winnt-stubs.cc rename to gcc/config/mingw/winnt-stubs.cc diff --git a/gcc/config/i386/winnt.cc b/gcc/config/mingw/winnt.cc similarity index 100% rename from gcc/config/i386/winnt.cc rename to gcc/config/mingw/winnt.cc From patchwork Wed Feb 21 18:35:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86185 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D81273858431 for ; Wed, 21 Feb 2024 18:36:09 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2128.outbound.protection.outlook.com [40.107.105.128]) by sourceware.org (Postfix) with ESMTPS id 7970E385841A for ; Wed, 21 Feb 2024 18:35:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7970E385841A 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 7970E385841A Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.128 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540534; cv=pass; b=VU8Kxlg+u3+WW0TeS/Bs8ZNQALDSzocFBV9JrGBwWHh/CBRzR12hD9vM7JwTtis7eS/Jme9yV6t12MtqGy7z9rnJ+f9p8DJnZQZ7ds+D5MoKWSHIPBIhL5WQAsA9oFFMjHJwqvnS6db8n1e7xg0VC2lBMqrfNrhahQ2Wj3RGby4= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540534; c=relaxed/simple; bh=2bCvSLC/uhipF6KZz1XAIB51sy5HP0ioPkpZPDM2fhs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=cSgdz027xnalHrVGhX7pIRGNBKNymAB9QudeopJLW195cpbJCXH2Myz0ehZhbroCm6eDvKXzAlR8RJS3Yc/dRgGBit09hDvblDynz2KqRUKmlp+H3w6UtX0Ah/CI9tywDVOyWP0d/id70FfUbyj04NKa+pFE3QqjIqH7U6RlkXE= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cKWZJ561YD70Bgp0Qzdet0UWUvPBY1GqIuQgvPT4jZLMBdbEzEgXikaD0uCDLwlVFN/Smd524Ao7dxuchn8aEZiU2jTIPZBhFvGvbs4lON5tpZDSG+wPrMyvt+qVp0XBXNt6WKRhp3+GsAr1lUOdec+Is6PRTxuVrRvg10GXzP4iuCJP54gZqn+b+tmALz/5DstzoDLB6Q78ZdQOb3swkA3aRmMikbOslNvjMjViJOAo8pY1t7UtHk8aHt0B3/coJk2X4DQP0sYZdZxQ7QMqaa2Ov43z7l0wJORsvL0pElKxvH57BEPe4CF3xmSjdnq/wveyzQbHBhAhpOC61xWO4w== 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=5vu2E86uA0sXinLTbbKxfZkdVet85fBhqI8cKPGbjlc=; b=evbyNfpQS3dsjzTK8YcZZxbLpef1Xrdi6IleAvbx7PL25xCYbovWS8q4G99RPmoVcx7dJLzzoweFhcuKLY2ui6tK0nD1axGk9JwDN1Ea46kVs1BwG+VPv3TzAAGqZeUAf3Gik2+8LXxEI3MZHEcvFQFjGJt3AnCDE+31jj39dD0UdJ0matGnbR6PUyVlEAg3Ozm5qezQ4s/FqXxNwddqejeQnPWQurgV2N82vWIns1qRPsHbCDC2piAyMOMd1VD2iJdtJidpb3Guc/r/A10Ji7E55jNDZfM63cGUTYGFnae5oZxMpG3Crgy4vKzVXcbqVGn4/wLxwXK62ZevSica+A== 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=5vu2E86uA0sXinLTbbKxfZkdVet85fBhqI8cKPGbjlc=; b=QduhAjHh6PL/GIALCI/IRffALVMi6iwce80PejmVMb8m4ISKshVNK3HoisS4HusoPq5SkMrMa+CO75ygsUew2b1WwGNxL7moT3xHINYc0FHFI7chIxsH3K4I8g8ZcsC4rE/1MBM4rVVCmHGnsF0rMDkPuyu3wHDLRn8dqF4gbKc= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBBPR83MB0614.EURPRD83.prod.outlook.com (2603:10a6:10:533::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:35:28 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:35:28 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 06/13] Rename section and encoding functions from i386 which will be used in aarch64 Thread-Topic: [PATCH v1 06/13] Rename section and encoding functions from i386 which will be used in aarch64 Thread-Index: AQHaZPS9Gn5vUfYCykee0Y7JQgV1+Q== Date: Wed, 21 Feb 2024 18:35:28 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBBPR83MB0614:EE_ x-ms-office365-filtering-correlation-id: 58e84147-d83a-4e50-eb28-08dc330be06b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bIU8qX726lxdgtGFzjUt+GtsOuCQRHc6HdPkDb+PJEyb/OCdY8nBV7ZUmW4yBE65UDbTCR8oU3DfFbkGy9pbmDP8zYJLXIvs33mURtWf36BsERCAFjiiZEENpro2++0WIHS2QbkTiQQkfW5VLTiy16vqButVe24pscjG52NufmENQRCPul3z2mmRvgrLBnhZe9pu23/T9x5dZgyBI7EKccjYjYwc1XznTJ8JFQWPEQgpTk/9Ygz7STd76UuJlfrIrcbpcmGzsdbJonE6LXQobG0Xc0/Yk2ip1RiAWVI4GAdmH6Kuz4yyTsaRTFjsZQqOh47gVeo+6NVVkSO3yjqUvbz6XEy1ewUoNRhcftyzLsg= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: nhw5jZs9kReKQoTqdUcB6RNFNr172es5cr8Z5cZzCd5671cVpgwVwyQR3P9StxUKWyEYQsbiZWazM5TmXJ9PoP48VFuNC8qs8TtuW2aZz1JgknOSMjzo+VtkIMWIyzVIhXQADnoFKvBJnPCFyG2RAtdjTzWoRVHmZVRz9y5nABSzQerdS5JH49pZQWaYY7Zdt7zYPABPhjUbb+ujPb5YEIVDEYUBkma0uRgEgQ2pRx+kMWoe1/2zwwwVtv2qpjyHal8lLr+/w69oXoeoqyNU7vVXT2Wb22OvPQ+z87/JkNaihmU1w/S6h+8cPfEZoKH6+/xWE4hbKVK1hHQbonpeHLOAQxeJUViTdrT2Ayy8Eb8VHKEET3jnJx2jC0wo4/055gWYT031mxSpWmwH84jcap0b+ebq8Z1QM8PsaFQvT8bqTN/EZW7AU+2uwXw+d7kTd/puS0EDc1XXNwVgRBkq145c36goZPx0KShlwy2hM194kRQiAVfFVWCTroXldw+v29u01ayCotgTiSOrN3faNv9+Qk4EEx0emxb+aPn+sy5hWYPw8z/E/L9GCrnL56CKhwJIk+3KijcBBmfZ/E5RO98/075/pD+OyJoTcE/UNqFSlFELuyl2T+B3ezCY6BU/FEL8LpMfHf+5poecCXn7BAL6e++zeZBEXfeYDn5Fr4YNsS1i4ouICPqUqXPq9f4dqFEsSlFl2ns5OJ35yxT55tB1JR1FaDcM28os7v286nEoy1iDJ3hrMyX0+EaOo62/IQ2bUn5u2rALl62/GmIk1X26ETsbLTeJy6LxPEy7vUXH7cP2vlPCxYZ6u3Ly3135kohCyCmz7YoFktE8vuCCq4UHyjLKwlIe/Vbfgl6BrZSKq22dS73cTLuytJPRoGouVsq+hbB13/EcesMYE8AAENLp5eM+0X69KbloATmCDefWwt6u1ICJO7lgqeoUi7kYvoLzSZA/WZUy8gC4Ocr5ZwQIOGCOqfBmui0289Q7R6GAk5+UFWpKB2uMje2Wk0n+8sVAOEZA0nB+QExm0XBhgqYvddYzWfAkUvAPvbkFKPIcj1nDzmOrChEiISbjAp+fTa/adeH7eZJut/aPnFSJGe2Qs4peKRMceQjrcWquZr7zMH8glR4lMrX8L3EWJxK6VK5K9ghuw4t9B0v58I6aBkQB3pWSpPju0A4qCOzarb5L+N83foF7dSYtp2pcexEHwWJ6Ye7vGJ58vkMuWQY0wgmOTxnv+DlxmtngLomGzeyv9UMbvlzaa1Yvn6i1b7FiWm3/2q1pdzTJdeSsHNpKtVntoeMe/vamHnStuIoSpUmW8w9og+BLOV/iVTsz93X9H3pdoh0nIRuxBBfZ17iGYLMfEtThIJ/w0mao/6SHSaQFfSx3kCwXRiboqOpbdLCacl4o33NtH5BRiRuXAyW4TN+fhuLo1muaOAjV69pp6nDUxVYUfb52GbixvGVAMt6l5d3H/EqEZDXvZRemlNDkz7WF17EBL1UyITujot89jnJ1Rc5/oxoXzXxm1jbDIBiONHiM2dPAIpWH1PhwFEz+QcXVM1jtAPFvkC4p1zpn/TPNsByvP34dPuUdwsC1Tzjm MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58e84147-d83a-4e50-eb28-08dc330be06b X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:35:28.2245 (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: ynyHPC2WOh+yu8UeHn841P8Z+IQsmuLJoy9jcKcfwNCUHuIFN1ufg0qv6OgUm2HjTQvBlBu7HDj9RyzFf2QzkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR83MB0614 X-Spam-Status: No, score=-10.3 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_NUMSUBJECT, KAM_STOCKGEN, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From 69561787206b968b5a86c48ca9c9f9073761ed78 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Tue, 20 Feb 2024 17:22:31 +0100 Subject: [PATCH v1 06/13] Rename section and encoding functions from i386 which will be used in aarch64 gcc/ChangeLog: * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Rename functions in mingw folder which will be reused for aarch64. (TARGET_ASM_UNIQUE_SECTION): Likewise. (TARGET_ASM_NAMED_SECTION): Likewise. (TARGET_SECTION_TYPE_FLAGS): Likewise. (ASM_DECLARE_COLD_FUNCTION_NAME): Likewise. (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise. * config/i386/i386-protos.h (i386_pe_unique_section): Rename into ... (mingw_pe_unique_section): ... this. (i386_pe_declare_function_type): Rename into ... (mingw_pe_declare_function_type): ... this. (i386_pe_encode_section_info): Rename into ... (mingw_pe_encode_section_info): ... this. (i386_pe_maybe_record_exported_symbol): Rename into ... (mingw_pe_maybe_record_exported_symbol): ... this. (i386_pe_section_type_flags): Rename into ... (mingw_pe_section_type_flags): ... this. (i386_pe_asm_named_section): Rename into ... (mingw_pe_asm_named_section): ... this. * config/mingw/winnt.cc (i386_pe_encode_section_info): Rename into ... (mingw_pe_encode_section_info): ... this. (i386_pe_unique_section): Rename into ... (mingw_pe_unique_section): ... this. (i386_pe_section_type_flags): Rename into ... (mingw_pe_section_type_flags): ... this. (i386_pe_asm_named_section): Rename into ... (mingw_pe_asm_named_section): ... this. (i386_pe_asm_output_aligned_decl_common): Likewise. (i386_pe_declare_function_type): Rename into ... (mingw_pe_declare_function_type): ... this. (i386_pe_maybe_record_exported_symbol): Rename into ... (mingw_pe_maybe_record_exported_symbol): ... this. (i386_pe_start_function): Likewise. * varasm.cc (switch_to_comdat_section): Likewise. --- gcc/config/i386/cygming.h | 18 +++++++++--------- gcc/config/i386/i386-protos.h | 12 ++++++------ gcc/config/mingw/winnt.cc | 22 +++++++++++----------- gcc/varasm.cc | 2 +- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 1af5bc380a5..beedf7c398a 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -219,7 +219,7 @@ do { \ section and we need to set DECL_SECTION_NAME so we do that here. Note that we can be called twice on the same decl. */ -#define SUBTARGET_ENCODE_SECTION_INFO i386_pe_encode_section_info +#define SUBTARGET_ENCODE_SECTION_INFO mingw_pe_encode_section_info /* Local and global relocs can be placed always into readonly memory for PE-COFF targets. */ @@ -235,7 +235,7 @@ do { \ #undef ASM_DECLARE_OBJECT_NAME #define ASM_DECLARE_OBJECT_NAME(STREAM, NAME, DECL) \ do { \ - i386_pe_maybe_record_exported_symbol (DECL, NAME, 1); \ + mingw_pe_maybe_record_exported_symbol (DECL, NAME, 1); \ ASM_OUTPUT_LABEL ((STREAM), (NAME)); \ } while (0) @@ -283,16 +283,16 @@ do { \ /* Windows uses explicit import from shared libraries. */ #define MULTIPLE_SYMBOL_SPACES 1 -#define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section +#define TARGET_ASM_UNIQUE_SECTION mingw_pe_unique_section #define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section #define SUPPORTS_ONE_ONLY 1 /* Switch into a generic section. */ -#define TARGET_ASM_NAMED_SECTION i386_pe_asm_named_section +#define TARGET_ASM_NAMED_SECTION mingw_pe_asm_named_section /* Select attributes for named sections. */ -#define TARGET_SECTION_TYPE_FLAGS i386_pe_section_type_flags +#define TARGET_SECTION_TYPE_FLAGS mingw_pe_section_type_flags /* Write the extra assembler code needed to declare a function properly. */ @@ -307,7 +307,7 @@ do { \ #define ASM_DECLARE_COLD_FUNCTION_NAME(FILE, NAME, DECL) \ do \ { \ - i386_pe_declare_function_type (FILE, NAME, 0); \ + mingw_pe_declare_function_type (FILE, NAME, 0); \ i386_pe_seh_cold_init (FILE, NAME); \ ASM_OUTPUT_LABEL (FILE, NAME); \ } \ @@ -333,7 +333,7 @@ do { \ /* Declare the type properly for any external libcall. */ #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \ - i386_pe_declare_function_type (FILE, XSTR (FUN, 0), 1) + mingw_pe_declare_function_type (FILE, XSTR (FUN, 0), 1) /* This says out to put a global symbol in the BSS section. */ #undef ASM_OUTPUT_ALIGNED_BSS @@ -416,9 +416,9 @@ do { \ { \ const char *alias \ = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL)); \ - i386_pe_maybe_record_exported_symbol (DECL, alias, 0); \ + mingw_pe_maybe_record_exported_symbol (DECL, alias, 0); \ if (TREE_CODE (DECL) == FUNCTION_DECL) \ - i386_pe_declare_function_type (STREAM, alias, \ + mingw_pe_declare_function_type (STREAM, alias, \ TREE_PUBLIC (DECL)); \ ASM_OUTPUT_DEF (STREAM, alias, IDENTIFIER_POINTER (TARGET)); \ } while (0) diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h index 46214a63974..dbc861fb1ea 100644 --- a/gcc/config/i386/i386-protos.h +++ b/gcc/config/i386/i386-protos.h @@ -295,16 +295,16 @@ extern void ix86_target_macros (void); extern void ix86_register_pragmas (void); /* In winnt.cc */ -extern void i386_pe_unique_section (tree, int); -extern void i386_pe_declare_function_type (FILE *, const char *, int); +extern void mingw_pe_unique_section (tree, int); +extern void mingw_pe_declare_function_type (FILE *, const char *, int); extern void i386_pe_record_external_function (tree, const char *); -extern void i386_pe_maybe_record_exported_symbol (tree, const char *, int); -extern void i386_pe_encode_section_info (tree, rtx, int); +extern void mingw_pe_maybe_record_exported_symbol (tree, const char *, int); +extern void mingw_pe_encode_section_info (tree, rtx, int); extern bool i386_pe_binds_local_p (const_tree); extern const char *i386_pe_strip_name_encoding_full (const char *); extern bool i386_pe_valid_dllimport_attribute_p (const_tree); -extern unsigned int i386_pe_section_type_flags (tree, const char *, int); -extern void i386_pe_asm_named_section (const char *, unsigned int, tree); +extern unsigned int mingw_pe_section_type_flags (tree, const char *, int); +extern void mingw_pe_asm_named_section (const char *, unsigned int, tree); extern void i386_pe_asm_output_aligned_decl_common (FILE *, tree, const char *, HOST_WIDE_INT, diff --git a/gcc/config/mingw/winnt.cc b/gcc/config/mingw/winnt.cc index 9b315898fca..1ed383155d0 100644 --- a/gcc/config/mingw/winnt.cc +++ b/gcc/config/mingw/winnt.cc @@ -293,7 +293,7 @@ i386_pe_mangle_assembler_name (const char *name) } void -i386_pe_encode_section_info (tree decl, rtx rtl, int first) +mingw_pe_encode_section_info (tree decl, rtx rtl, int first) { rtx symbol; int flags; @@ -384,7 +384,7 @@ i386_pe_strip_name_encoding_full (const char *str) } void -i386_pe_unique_section (tree decl, int reloc) +mingw_pe_unique_section (tree decl, int reloc) { int len; const char *name, *prefix; @@ -442,7 +442,7 @@ i386_pe_reloc_rw_mask (void) #define SECTION_PE_SHARED SECTION_MACH_DEP unsigned int -i386_pe_section_type_flags (tree decl, const char *, int reloc) +mingw_pe_section_type_flags (tree decl, const char *, int reloc) { unsigned int flags; @@ -471,7 +471,7 @@ i386_pe_section_type_flags (tree decl, const char *, int reloc) } void -i386_pe_asm_named_section (const char *name, unsigned int flags, +mingw_pe_asm_named_section (const char *name, unsigned int flags, tree decl) { char flagchars[8], *f = flagchars; @@ -548,7 +548,7 @@ i386_pe_asm_output_aligned_decl_common (FILE *stream, tree decl, rounded = (rounded / (BIGGEST_ALIGNMENT / BITS_PER_UNIT) * (BIGGEST_ALIGNMENT / BITS_PER_UNIT)); - i386_pe_maybe_record_exported_symbol (decl, name, 1); + mingw_pe_maybe_record_exported_symbol (decl, name, 1); fprintf (stream, "\t.comm\t"); assemble_name (stream, name); @@ -574,7 +574,7 @@ i386_pe_asm_output_aligned_decl_common (FILE *stream, tree decl, visible. */ void -i386_pe_declare_function_type (FILE *file, const char *name, int pub) +mingw_pe_declare_function_type (FILE *file, const char *name, int pub) { fprintf (file, "\t.def\t"); assemble_name (file, name); @@ -641,7 +641,7 @@ static GTY(()) struct stub_list *stub_head; the LTO marker. */ void -i386_pe_maybe_record_exported_symbol (tree decl, const char *name, int is_data) +mingw_pe_maybe_record_exported_symbol (tree decl, const char *name, int is_data) { rtx symbol; struct export_list *p; @@ -761,11 +761,11 @@ i386_pe_file_end (void) the real function so that an (unused) import is created. */ const char *realsym = i386_find_on_wrapper_list (p->name); if (realsym) - i386_pe_declare_function_type (asm_out_file, + mingw_pe_declare_function_type (asm_out_file, concat ("__real_", realsym, NULL), TREE_PUBLIC (decl)); #endif /* CXX_WRAP_SPEC_LIST */ TREE_ASM_WRITTEN (decl) = 1; - i386_pe_declare_function_type (asm_out_file, p->name, + mingw_pe_declare_function_type (asm_out_file, p->name, TREE_PUBLIC (decl)); } } @@ -1354,8 +1354,8 @@ i386_pe_seh_init_sections (void) void i386_pe_start_function (FILE *f, const char *name, tree decl) { - i386_pe_maybe_record_exported_symbol (decl, name, 0); - i386_pe_declare_function_type (f, name, TREE_PUBLIC (decl)); + mingw_pe_maybe_record_exported_symbol (decl, name, 0); + mingw_pe_declare_function_type (f, name, TREE_PUBLIC (decl)); /* In case section was altered by debugging output. */ if (decl != NULL_TREE) switch_to_section (function_section (decl)); diff --git a/gcc/varasm.cc b/gcc/varasm.cc index 008d9b13303..b011ea033c9 100644 --- a/gcc/varasm.cc +++ b/gcc/varasm.cc @@ -8626,7 +8626,7 @@ switch_to_comdat_section (section *sect, tree decl) everything in .vtable_map_vars at the end. A fix could be made in - gcc/config/i386/winnt.cc: i386_pe_unique_section. */ + gcc/config/i386/winnt.cc: mingw_pe_unique_section. */ if (TARGET_PECOFF) { char *name; From patchwork Wed Feb 21 18:36:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86186 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 070BA385842F for ; Wed, 21 Feb 2024 18:37:26 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2115.outbound.protection.outlook.com [40.107.105.115]) by sourceware.org (Postfix) with ESMTPS id 2A6C53858D38 for ; Wed, 21 Feb 2024 18:36:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2A6C53858D38 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 2A6C53858D38 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.115 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540578; cv=pass; b=NpeNpJcqmpLPEX1tOzydGXpzVisTGEHkqjk2XbOR4rrnv9tZAlJA5WjcEObOYgyakPsIMM9OH3T3KxvBoSLU/0Efak3AZYs4czZS3nl80wjKq8ornYpYFXgnSzBuXUd6Xj9fBnugBMHghZbKS7eJsw0SACJSxdCKxoS/DIT7YZs= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540578; c=relaxed/simple; bh=nGBkCH5H1s+CnE4qWZ3AGBznCAt/KVff5ImD3Itd3JQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=r3GzPBFRBITS5UwquwjogN3+Ev/h5eHHefEJJOQZ0YcYx8Uij9vS6WSZtwDvd4gVbTCq3TNxiwsSAuO+UEd8i0bwojNhv+Bvj6qljG4yvsfd9aAZyxkg5qkOm3bOtLm5/QeE9hKBiS33iSN5+U+Po+eLZ9+xBD8YKe6Q7W+fBuY= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NhvWXA0qp0NpnNVqgfnPZ/xEc0mTzapsJ5fpERGBz/ADQiB0cWQRe94KUKP912nqDsWyJcNjM54KYubBLa1YGrv4FHwvYd5DLATkhMtuy9S3jYYG19KvZdLnrTciKMJy3S8ZVQXg9NQcmaGQ7t28l27PyYSLGffJZkSEBq0upuWS4bTi0lI0G2KY9KO52vapzHpaSMt1DJv1jrnVSDiwMlPye7EGjCsiMTW9RWYDZ+gj/yFBIPJKMn6tetfUP9U+5T5GfYLvLv7WIuigcdbk8Vgs3UJa2KAAeCacFHG0ZWH4om+QSkpf4HPrCPXsXbOxbfnIWj162sS54H5vtQV7Ig== 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=BaMCFLb1p3ruSVcNQqfc9EUp9NCyo8iW3x/CW8iNV58=; b=DdInEwhtbyCEj0Jekn9MlAGtiQxBGQVAd49H/XGZ1aNviuh7aSEQXZx/nkirbsUeMrkczwAA93EPEqObjwMDK/7KFD9p9QhJSRGVPzwgG4/4ammsRJKrLzYDO46ljfK2Z90VUzKYYq4XYHSkWG4f4Tg2UPqy/cYSuhDGC7Ea9lwBH7AWig+Dzk7mJrgl62mAUHl79+H9RroNySoWGmf//1PmNaVhaaG3XUP4etmqfQo3xXMLhLJaF+jCzOxZCY5vHRiGTHHFQkUMDUab46/XAmHx/aZQGPHvym236Nl2jK6YKiZboXXS6ekBV9RgOTacrBNhCUAerSx7gRULi/qNLA== 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=BaMCFLb1p3ruSVcNQqfc9EUp9NCyo8iW3x/CW8iNV58=; b=aJuhyHm6VRsXbPPIz36nx+CJudGV4PUpFdsKzceZkY0cx8v60eXRtvnrBu5BIKXTu5EPSDyUaGsxorhGXUIDrIlTDw714jXCHwJRaQa965xEg7WdmKJmA6Si3esjBCXwZX+aJ//WusSBMjUHhckLPEg7NLHQJRsediZcl6clmmY= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBBPR83MB0614.EURPRD83.prod.outlook.com (2603:10a6:10:533::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:36:07 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:36:07 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 07/13] Exclude i386 functionality from aarch64 build Thread-Topic: [PATCH v1 07/13] Exclude i386 functionality from aarch64 build Thread-Index: AQHaZPTVdDAHLENkZUCeYtVztgloBw== Date: Wed, 21 Feb 2024 18:36:07 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBBPR83MB0614:EE_ x-ms-office365-filtering-correlation-id: c90590d9-a9b0-4ba2-a99f-08dc330bf78e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZPUWJA8GbaU+QsoW50ETSV1PtvGzG2XvhXQa8POJczJWq/tPfKFJ8NrbckHlshLqPQnxfUTMWE0CY9Ocx8UhdIk6zXGszsBfsV4pSDT15UBrmA3MNuYr1kl5pgKBDvnsOE9t/XEsNKMo8ht+p8C2xU1ymYWHA5NtbpyJUiJBGsjVzpT5fsUKiOAJsekn74GbMPguy43DZEnKkAqgjcUUyXs/pAWr6nZr5HDzMDGt7628eVuFPnHqGxSOMKyYj37exSTJgNa3HQvK+aIHcFiKcQKNfxiKQh97hjr4chsnQWTNs6PYwrWe8Svndbx+NMQIF1uX031b/ZISsmh3c/d83AeAvzENeKa7CIUQBhZyvLU= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: +FFastRLOOamENwdqowTsfKDq6hHu0PqOV7NHThoq5a/eOZdMKXBs804V9zgOQ6XGQmGqHQ1BxqC2fIZDYX2ozuF/+5BmDDohynSIv72k0Bo09b8RDPMcrwtmi4zZ1a7PEzUBGBWnxE/qK5c9Ykp6yWBOhICR6aqAmjYj0eZPEcqh0K2UUv7yRi5YY8B+q8nChkv7fxmvw+BUiuaVwQ1QpEFvQZr+IpXRggA1z65aLxnXIRx8B3LbefK1IYlRYhJFm1MEQKGWAKFfYvZrtmBN6gEzCXhI2OEL1Xu20U9m8qytnA4ePMK/QTuZSLsPojrU71QMJWw7KsZ3yp+fKEy5nz/WXiNUXY7Bal/7168x0IoA+yGSrtsRkEo1sBYe07xX9p8EAK+nuGyvIU1aj1s1QkY2blBI7qiSZTzW1Dazx4MHQEqQ+n+Nu3YmJzy4gWlnA4cIsiytCB7n06IQmDkr1H/wsdhiclgIO0gCqOwCs7x5PyXJxLYWXWgWVZs7UooA9SWscDmFFGJdSNoKk4bnXCLWvXQbN4C7D+qBG715UNmCLk4FMFcJy7TiHPGHqBgY09MtOHvTgXn3N6jLRRNTdfvuHkzegJbWL104sJvzmzOCysMTZnX9ZXQwL42e8GwECPb+YXm448RsPyHGD6Vqfo+F9OxtnPm9fDMUna3qhd2wehXgVVaG0xZotJUlsXjS/CcUfKUdtOC4jeI4I6gyR3A0wMMIzQlxjrnh/w2pgQSdNh+II+Tc4H6b/YHrm806BgqycRwg9uA7odMnkFPQWZlZBYwZexT+atrmjfSpuMRe5p0P2TLAxZl4VhuCmldEFE1bvHsqWuhrpvfmczNgMfTRJ+eyjTEYxe75ld6JO9nb61jkCKlPFN3BKbF2k1edcM85T531LO9F7B9dFBkVlPh1iKpEdreETVPcAfrXfXgPAHn+7XGIQkOFZbTGyX87vGe9rF0Fom2JU/NHLmwrVK/PRjrUgyCVwtExKfPvfJzBZqsrV226EHDA7QoPKnCjlQpS/+SPlH739UG1LZ0AOGI8yBEjfRNxzhM995+zPOrEicSqb6wY9J+i/PxoQDJEJgr81OKXsu9ph5mKrm5EADcKzjaWVKOtbMhwZ7yjaN5RksHbwYYnQYzLELy3zy+IKg2T3c3NhXhpaPg7kjYVABev3FhRj6D5gqHHmaf5FTVIodOpiMXGs9WG58jC/lFMvTEFEBinb4myNiG+V2lBIvjodoNH2aBt666w0+jiIKSnPhB4QEgVRFFzl+V9z5fJ+Ur1cmvovhufBjR1/JPxDaNSuPRpEgAg/Pvd9FTNAm2WqfaxY9BmGX4e/PLcLJNYSyfAf5n/GV2tpjvwnu4S0XhKJumbtPfVDDP3Pnu9+wpVAhzYH+2gciu+lpwo6etpFp6XbFaTpBndEl/P4N9rsD3ksc52PFx0a2syVTNwoCOAuPnclq2UE3AF5pFMbMI0ypW3jd9ffGkgnREnrFhdOSN3ATPYnjI/jLGuhecBxPiwiG2htga7Lv9d/Z8CJyOBFD5MzEpPOp6o3ERqspEHNuBvkRCKiWSIBNXr/0pjt//lFnjVYBA1kU0CPeDoZle MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c90590d9-a9b0-4ba2-a99f-08dc330bf78e X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:36:07.0469 (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: Hop/XQgXNdzXSt0rnm7co00Yd7nhaAsc3+1sQY/aJle6OECKJjxF4HJhjKTTadvFliOQGLnm77ggdtiREZel8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR83MB0614 X-Spam-Status: No, score=-11.4 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From 1b7451707709d6745efb52b54b17e798d7375aac Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Tue, 20 Feb 2024 17:31:58 +0100 Subject: [PATCH v1 07/13] Exclude i386 functionality from aarch64 build ix86_get_callcvt is used for i386 build and needs to be excluded to reuse winnt.cc in aarch64. gcc/ChangeLog: * config/mingw/winnt.cc (defined): Use TARGET_ARM64_MS_ABI to exclude ix86_get_callcvt. (i386_pe_maybe_mangle_decl_assembler_name): Likewise. (i386_pe_mangle_decl_assembler_name): Likewise. --- gcc/config/mingw/winnt.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/config/mingw/winnt.cc b/gcc/config/mingw/winnt.cc index 1ed383155d0..bd86cfb1156 100644 --- a/gcc/config/mingw/winnt.cc +++ b/gcc/config/mingw/winnt.cc @@ -224,6 +224,8 @@ gen_stdcall_or_fastcall_suffix (tree decl, tree id, bool fastcall) return get_identifier (new_str); } +#if !defined (TARGET_ARM64_MS_ABI) + /* Maybe decorate and get a new identifier for the DECL of a stdcall or fastcall function. The original identifier is supplied in ID. */ @@ -250,6 +252,8 @@ i386_pe_maybe_mangle_decl_assembler_name (tree decl, tree id) return new_id; } +#endif + /* Emit an assembler directive to set symbol for DECL visibility to the visibility type VIS, which must not be VISIBILITY_DEFAULT. As for PE there is no hidden support in gas, we just warn for @@ -266,6 +270,8 @@ i386_pe_assemble_visibility (tree decl, int) "in this configuration; ignored"); } +#if !defined (TARGET_ARM64_MS_ABI) + /* This is used as a target hook to modify the DECL_ASSEMBLER_NAME in the language-independent default hook langhooks,c:lhd_set_decl_assembler_name () @@ -278,6 +284,8 @@ i386_pe_mangle_decl_assembler_name (tree decl, tree id) return (new_id ? new_id : id); } +#endif + /* This hook behaves the same as varasm.cc/assemble_name(), but generates the name into memory rather than outputting it to a file stream. */ From patchwork Wed Feb 21 18:36:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86189 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0A9F9385842A for ; Wed, 21 Feb 2024 18:39:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2124.outbound.protection.outlook.com [40.107.105.124]) by sourceware.org (Postfix) with ESMTPS id BD045385842A for ; Wed, 21 Feb 2024 18:37:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BD045385842A 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 BD045385842A Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.124 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540626; cv=pass; b=Xh5iD2kHJSbdeM5zfWgB95xXdL35KUMQ4VCFFldGQeOQZca8VodLhkHOtawHq0NjKh4AF/+5QKRR5K9AlUzKD/Q/NFVMnxBoDAx/c1uGm+vLItiaOndtLO7k62tNSWpjuOT9ul4YCMEjO2iASWHJUaXxxNpsqMOBWmZ/1hJrLCU= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540626; c=relaxed/simple; bh=OOcjiZX9rjUIG6K+MlxJ2JICuNPhPS3ei8HLGlHFr+g=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=fDKlNUgEv7FSYQog4SehHlPpaxdKWXxyqNZFEGyiZUPscvUzrZee0S6DUmhqR4fc0JDrusODLIV+iSegUx6CJ1TymLLi8Ir9mSUGGj+dlUxwWVRV3vqV0holeTclsXmBOSD4s2Ab/XnL5ClJflbX1goEIk8iNvESX2WoHk4g1o4= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=StOW2flep8Jf4OM8KslcBwo6/CPKAkx4DsHk1xt40KdC5vYDopmCnUMQhy6+x8g5iySJTRfOPNN7cYFFdZE30hSgHaGe/eJ06pG+irLgQ8lLa9VAuQZ17MVgunlMMEMg+1bUg+6qoesy3N1XdSLt4+08p1dx8lJy13cnvK2LCWwimnoMvg+ccdz1pLpDtGQvqlOvueY/rsL0EaTj6GP4Hs9JrDP91YkOMqDa1b5qGzYwsdVmkJcqeVGXd59RbtCP0cFSfUea3ejI44xft7Ikqvjcr4Slx7mSiH491xpWx5qi9hEvD3TIK9ko/vIUsBS5xkwn7eCJleMWmXD8aWIUiQ== 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=qTmwWhFo2qZ+L4D/jRVAdOTGtZYBsgppaI06V8pucUA=; b=MMva1q95DYg6AVsPI1bVlB4Q1xBNf1uwKBHIcp8+m6xTrruyxIgp6HeYuNMPaxcCmeBRmK8MnED7njA1nvVfOVy/9RrFEez0KJdBtk2uo7jGF3gfsQ+aEiyDBv6fuNCOh/csIoxjqln6n8pVhgwmVjaOIC2aL80/1RxSJNgDeocGavBJTQEImN6XRgCOY9kQxF4u84Yl5bULR5yUmwcXA9ZNOjOAXtEoyIS7JteAhi3bxUKDKG0q8H1KWFhKdYU/HAOKXM+EIbHXC+NisgVkPoJ959HTAAxpW9B0qNtCcgdpYwoNMADc95pJLVBKcrkg2BMbFoE6+ZCv1y/etqGuGg== 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=qTmwWhFo2qZ+L4D/jRVAdOTGtZYBsgppaI06V8pucUA=; b=VDg6sRfpBW8F/4PntF7LRfOYPo6yxlH+Tg8K8j4imkZqfa/5sf8FsE1feGfdbMJldYV6NLGpHX9H+7vfRWf3nrHjMuMYmLx7jxJd+Ey1fh1R01gCGq/GhFWkjOgLfP6Yk02x0TpbuBDqRxJqPE4i7LDobgJr3vAx0ASi7zzSNEk= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBBPR83MB0614.EURPRD83.prod.outlook.com (2603:10a6:10:533::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:37:01 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:36:59 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 08/13] aarch64: Add Cygwin and MinGW environments for AArch64 Thread-Topic: [PATCH v1 08/13] aarch64: Add Cygwin and MinGW environments for AArch64 Thread-Index: AQHaZPT03jL5rW8YGUKt2xsJE5pL/Q== Date: Wed, 21 Feb 2024 18:36:59 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBBPR83MB0614:EE_ x-ms-office365-filtering-correlation-id: c6b2cbbc-68ed-411f-76f1-08dc330c16b6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MIRghKZXjzcF3kuoUpYh9p9v6RcbHArwTLMRUTfedO6GT1I85ldZ2kNfvnACGhaCcX+ZkcIN2xbZO9xHBv3LTZHOuTXQigTuahNocZfJiSPljODCsiK5csJLyUvKymsB9vcC7QUSF12POhjQb/XKBw1qSos97FpBWn0+ThDyN4abtVQriBHd8qv7PjZABvjVRgIsexBszPZNMyjiHZyidlr91NRsEQ1D6B/EuLYnMUbNpMIYwaBclN7GscLuc/WtGmOGaO2LIIse9mkF1fJSy0CpfoZuYHVEZNX0mSsRY+4RJC0gKV3qnDaJpcxoToRIjqj8gQzemFxh6zdwcYOCNOCM22SfT7zPIfieInnwqdQ= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 27TaaCuBORDt2pMKCyKLpjforAhfTRK0g20qSnStsb0Zsil6q/3SfWy+21IwHB6hGd0QVm1vwoDV1qMJ6GAYt70DrELIEomxuILmY1g4vLQh1Upy2Y1KU2Rcj42wlD9LNOFly1jKM0QVjwrKQQxRUz0IS7QCrioXEhCMigeGcU1jtyULWdtEYVixDt6L1CWN+P15R/VSGApUKAthaMoFUgHmX86eUZsqq7sUWYnl/5VkgydMLQR9QRa2x1VmTQ0hda2zPogohDG26Iyu4fKU8PplNf0twc7+Im5kR0lsMmToKERPoN3/z9Hs7dQyYXJGJnp160D4YRog74OhGV2tA8mGZzTC3BJa8pYyooM4wEuE/0D8Ew/m/t5eVsYPt20kzOy0TFD7eUPyQEwbwX1sX71xHzfgqm0//WZ5JqhDgPjGkFGddjRGN+NjONnLjX/MyNiY6hPqRsbuf3X1Qum28oYTAmtDV0b/o4I/JkaKd03BWq/rb4oTrYgDIVD3tNNLDHQHKw5pWIE0RYid+H+OvBNnmDRvovRZRZ4AA360MICbKKfz2o0S0yixltIr2v0xfojbhQBh08fq2/nmvamRO2QZLhw4/079MTRithyuc9oCCuzWBy9KGwXKfGhUjuTEXBu/4wA0HkFHVFEPSCrvv+kYpMj9V2Gw+Wd8nA24YqCrJ1kXlHgrlQh84WOMft0a3zL9XOFJjGUsQDZzmCVpRgdAVIKUjUJr8OCrv2I+ywVP6Wnu3fwHx2tZAOIHvv69BeE3c65eWAo/BtKQ5Hd5zCLf1tlwuA3/uYzxTn/nRYuBJKKAQ3TvJiheEPv5A2JEJU/4DIBhSxpGQoPSAR2/HoBeNuezlZF4/0aY3Z3ujk+J5QU+cEbQ3onGFMD0JBTLL41tWqmtKjvJg2BkLg1vaTXT8M5AqeW+mekbWYAHLVUKB4iadTGZMN8R9ogB8iucRf7CeD59YShqslBeGkETcdIiLp+6OAKuWEiGxS0Z4F+qaTNgZCqAwVG6KpsdhtKDhTlPx3+FSERJGdUn6FFcAVLHPRRdG48+KNm3+QLKYUJDoIKLkC93Fj73vIM0y3Oy++XZnu4G+tjZGs0hRjXNunfvnyuK2YgUZ6aCwFceXMFS9ITquLJTIbrEgOBUhDFyaoGc2OkNkzMkuharZ9g7k3hv387N6BnMp8dolCTCsd7MnlCUSMDBLsZ8+NydqnP0UcxH0VyJ77CFSJ1Sl8QcTnnR6Q//zAkMgMSC6iMmbtHasR/UWQj4aB07J3hyfrE52IiArkRdEkwi1Lg9TI7ds2NkpWdmNzQWGTNkQ0VFO5ocrTI+BNzcVkwqgPX7qd81w723BLJ4a7t5dTIivf/LDsDMUoNilCKVPu13lhMAjeOqkKBNq/EXEnBWseuca0NY7b8kZtK8k9Fkx+ASSd6hk7KZPoL+HNFlfWWalezFkJSYH2eYYAkpSB2NvtRZVCdTVueccqRejyO0kx/WlQCDwOJqXUvbkIdY+ydkiFai5d+WWWWp5pMIg7T0p1ByDR4wsRxgAQAcwux0PQ3y3DqNJPKsXu5sWdDd4H3bNA0I91UxmMnPskh6dZrOFnwF7uhM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6b2cbbc-68ed-411f-76f1-08dc330c16b6 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:36:59.2846 (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: MNs+fUmfmnx1b50bPGCAA3ovNNu9B4hG6FMah3i9v/6V/RbD9FqKMfOS9DS1hsULMK8qunpfutYi7DQJxgZNxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR83MB0614 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_NUMSUBJECT, KAM_SHORT, KAM_STOCKGEN, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From 1ea6efa6f88d131884ecef21c4b5d2ecbab14ea7 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Tue, 20 Feb 2024 18:06:36 +0100 Subject: [PATCH v1 08/13] aarch64: Add Cygwin and MinGW environments for AArch64 Define Cygwin and MinGW environment such as types, SEH definitions, shared libraries, etc. gcc/ChangeLog: * config.gcc: Add Cygwin and MinGW difinitions. * config/aarch64/aarch64-protos.h (mingw_pe_maybe_record_exported_symbol): Declare functions which are used in Cygwin and MinGW environment. (mingw_pe_section_type_flags): Likewise. (mingw_pe_unique_section): Likewise. (mingw_pe_encode_section_info): Likewise. * config/aarch64/cygming.h: New file. --- gcc/config.gcc | 1 + gcc/config/aarch64/aarch64-protos.h | 5 + gcc/config/aarch64/cygming.h | 178 ++++++++++++++++++++++++++++ 3 files changed, 184 insertions(+) create mode 100644 gcc/config/aarch64/cygming.h diff --git a/gcc/config.gcc b/gcc/config.gcc index 498ee702607..96e3508eb30 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1265,6 +1265,7 @@ aarch64*-*-linux*) ;; aarch64*-*-mingw*) tm_file="${tm_file} aarch64/aarch64-coff.h" + tm_file="${tm_file} aarch64/cygming.h" tm_file="${tm_file} mingw/mingw32.h" tm_file="${tm_file} mingw/mingw-stdint.h" tmake_file="${tmake_file} aarch64/t-aarch64" diff --git a/gcc/config/aarch64/aarch64-protos.h b/gcc/config/aarch64/aarch64-protos.h index a0b142e0b94..6d85452b0f6 100644 --- a/gcc/config/aarch64/aarch64-protos.h +++ b/gcc/config/aarch64/aarch64-protos.h @@ -1109,6 +1109,11 @@ extern void aarch64_output_patchable_area (unsigned int, bool); extern void aarch64_adjust_reg_alloc_order (); +extern void mingw_pe_maybe_record_exported_symbol (tree, const char *, int); +extern unsigned int mingw_pe_section_type_flags (tree, const char *, int); +extern void mingw_pe_unique_section (tree, int); +extern void mingw_pe_encode_section_info (tree, rtx, int); + bool aarch64_optimize_mode_switching (aarch64_mode_entity); void aarch64_restore_za (rtx); diff --git a/gcc/config/aarch64/cygming.h b/gcc/config/aarch64/cygming.h new file mode 100644 index 00000000000..cf47184eb66 --- /dev/null +++ b/gcc/config/aarch64/cygming.h @@ -0,0 +1,178 @@ +/* Operating system specific defines to be used when targeting GCC for + hosting on Windows32, using a Unix style C library and tools. + Copyright (C) 1995-2024 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3, or (at your option) +any later version. + +GCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +. */ + +#ifndef GCC_AARCH64_CYGMING_H +#define GCC_AARCH64_CYGMING_H + +#undef PREFERRED_DEBUGGING_TYPE +#define PREFERRED_DEBUGGING_TYPE DINFO_TYPE_NONE + +#define FASTCALL_PREFIX '@' + +#define print_reg(rtx, code, file) + +#define SYMBOL_FLAG_DLLIMPORT 0 +#define SYMBOL_FLAG_DLLEXPORT 0 + +#define SYMBOL_REF_DLLEXPORT_P(X) \ + ((SYMBOL_REF_FLAGS (X) & SYMBOL_FLAG_DLLEXPORT) != 0) + +#undef TARGET_SEH +#define TARGET_SEH 0 + +#define SSE_REGNO_P(N) 0 +#define GENERAL_REGNO_P(N) 0 +#define SEH_MAX_FRAME_SIZE 0 + +#undef DEFAULT_ABI +#define DEFAULT_ABI MS_ABI + +#undef TARGET_PECOFF +#define TARGET_PECOFF 1 + +#include +#ifdef __MINGW32__ +#include +#endif + +extern void mingw_pe_asm_named_section (const char *, unsigned int, tree); +extern void mingw_pe_declare_function_type (FILE *file, const char *name, + int pub); + +#define TARGET_ASM_NAMED_SECTION mingw_pe_asm_named_section + +/* Select attributes for named sections. */ +#define TARGET_SECTION_TYPE_FLAGS mingw_pe_section_type_flags + +#define TARGET_ASM_UNIQUE_SECTION mingw_pe_unique_section +#define TARGET_ENCODE_SECTION_INFO mingw_pe_encode_section_info + +/* Declare the type properly for any external libcall. */ +#define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \ + mingw_pe_declare_function_type (FILE, XSTR (FUN, 0), 1) + +#define TARGET_OS_CPP_BUILTINS() \ + do \ + { \ + builtin_define ("__MSVCRT__"); \ + builtin_define ("__MINGW32__"); \ + builtin_define ("_WIN32"); \ + builtin_define_std ("WIN32"); \ + builtin_define_std ("WINNT"); \ + builtin_define_with_int_value ("_INTEGRAL_MAX_BITS", \ + TYPE_PRECISION (intmax_type_node)); \ + builtin_define ("__MINGW64__"); \ + builtin_define_std ("WIN64"); \ + builtin_define ("_WIN64"); \ + builtin_define ("__stdcall=__attribute__((__stdcall__))"); \ + builtin_define ("__fastcall=__attribute__((__fastcall__))"); \ + builtin_define ("__thiscall=__attribute__((__thiscall__))"); \ + builtin_define ("__cdecl=__attribute__((__cdecl__))"); \ + } \ + while (0) + +/* Windows64 continues to use a 32-bit long type. */ +#undef LONG_TYPE_SIZE +#define LONG_TYPE_SIZE 32 + +#undef DEFAULT_SIGNED_CHAR +#define DEFAULT_SIGNED_CHAR 1 + +#undef SIZE_TYPE +#undef PTRDIFF_TYPE +#define SIZE_TYPE "long long unsigned int" +#define PTRDIFF_TYPE "long long int" + +#undef WCHAR_TYPE_SIZE +#undef WCHAR_TYPE +#define WCHAR_TYPE_SIZE 16 +#define WCHAR_TYPE "short unsigned int" + +#define drectve_section() \ + (fprintf (asm_out_file, "\t.section\t.drectve\n"), \ + in_section = NULL) + + +/* Enable alias attribute support. */ +#ifndef SET_ASM_OP +#define SET_ASM_OP "\t.set\t" +#endif + +/* GNU as supports weak symbols on PECOFF. */ +#ifdef HAVE_GAS_WEAK +#define ASM_WEAKEN_LABEL(FILE, NAME) \ + do \ + { \ + fputs ("\t.weak\t", (FILE)); \ + assemble_name ((FILE), (NAME)); \ + fputc ('\n', (FILE)); \ + } \ + while (0) + +#endif /* HAVE_GAS_WEAK. */ + +/* Get tree.cc to declare a target-specific specialization of + merge_decl_attributes. */ +#define TARGET_DLLIMPORT_DECL_ATTRIBUTES 1 + +#define ASM_OUTPUT_ADDR_DIFF_ELT(STREAM, BODY, VALUE, REL) \ + do { \ + switch (GET_MODE (BODY)) \ + { \ + case E_QImode: \ + asm_fprintf (STREAM, "\t.byte\t(%LL%d - %LLrtx%d) / 4\n", \ + VALUE, REL); \ + break; \ + case E_HImode: \ + asm_fprintf (STREAM, "\t.2byte\t(%LL%d - %LLrtx%d) / 4\n", \ + VALUE, REL); \ + break; \ + case E_SImode: \ + case E_DImode: /* See comment in aarch64_output_casesi. */ \ + asm_fprintf (STREAM, "\t.word\t(%LL%d - %LLrtx%d) / 4\n", \ + VALUE, REL); \ + break; \ + default: \ + gcc_unreachable (); \ + } \ + } while (0) + +#define READONLY_DATA_SECTION_ASM_OP "\t.section\t.rdata,\"dr\"" + +#undef SUBTARGET_OVERRIDE_OPTIONS +#define SUBTARGET_OVERRIDE_OPTIONS \ + do { \ + flag_stack_check = STATIC_BUILTIN_STACK_CHECK; \ + } while (0) + + +#define SUPPORTS_ONE_ONLY 1 + +/* Define this to be nonzero if static stack checking is supported. */ +#define STACK_CHECK_STATIC_BUILTIN 1 + +#ifndef HAVE_GAS_ALIGNED_COMM +# define HAVE_GAS_ALIGNED_COMM 0 +#endif + +#undef MAX_OFILE_ALIGNMENT +#define MAX_OFILE_ALIGNMENT (8192 * 8) + +#endif From patchwork Wed Feb 21 18:37:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86188 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 75E4B3858D1E for ; Wed, 21 Feb 2024 18:38:21 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2110.outbound.protection.outlook.com [40.107.105.110]) by sourceware.org (Postfix) with ESMTPS id 7A2473858289 for ; Wed, 21 Feb 2024 18:37:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7A2473858289 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 7A2473858289 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.110 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540668; cv=pass; b=YGKYQAVeRno/BkeQL43aPxj+8RrEaK3d5IDcjI3QqDsaJmkThjHICuniO5eSpz19OGWlKq0jMslzZKf60Rv/5EnVcb3xZeRtGSeOFKDuuliQGpS1AJzTQg5bTeFSwJZ7ZTtxEeKI/NrN2+UGzJHCdeqDDqaqv43FUsJQBirxUxE= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540668; c=relaxed/simple; bh=zbnjJbIQ9RRpAhmsGKVcz48LtGIjDp8+rC5tRZ/RCLg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=EGI2Xpk8YFCeLU0cd4YDUH2mBYLI3BKtehNSGujgfqc0y9SrxXmi6Dhq+4+pkoGVKLWav6Br+GHziW81v69JFVXWr/YJLPZgiLKHzGQPJZ8jj6ysbVZ09a791qXwkBQ+8PsPk/NxQzla2mhUeW+P+W1rBRiyG2pQr3dFq7XN+Vs= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aO2vv5Krz4EZuz9KvBDc9LRrbNQ+luQwarUPOIqo8Va+TLpbUAcJ/kFD9tO8Mr0NU2kEXTAq2Hk7lnFmVfVmymNb30jwZEyY/QfPEEX+9Rzd2ddznQra2G85a0vg2DeNoUXFcFKDbRKDKV17MLTaqqISfR8+dkZcrC9rWqlGPKsI7oLv7FZhmO/lXbQy/pQQqajldpHXO2KCk88jmdrDtx4AebjGaxxqc3wo37xYDLDPUPkwo73WFK92+1HWTQo1hiN+jzL0Mi9gQMsJ0lIXpVZIanUqVsbFtVEm6BtebxZsEFquw2kxDXtP+9OyG2OYtu3TI1xP2GbGC2JkdXrlVQ== 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=JCW3s2GHK/ugd58H7nRzG/k/q0/wP/f/4A0B8UMP/34=; b=PBjL8BS+oTKbtaHc7MnPaXxlJ/+9R8ryhau8bn5LtxAIiYVNmMZ9SFjNa1XmD3nxWREk0a75cGlj7vpDNhMLu1is6Fe94NqHAU5UDNEKfoVHs6bUEyPOi27fitFedCLDv++7LGwNgGNOq+mz6cxxMGySx2xMr2nBlggKBKRLH3tqUfJ/RO24b/uhJumLX7ydPpFUccqBw4pIZq3XXnUPz6rYD2HXoV9vA7OED9jRWt1ym44ZYe5/mzbh6VJkeLHzNRxXJBFiWvcxPuDczDFOHYNQjrvt5CJl2KVHWoZ2VI0LpQpBEBT5SBbhRFiLAHhNr5BNuUQfBna6NGcGb75z/A== 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=JCW3s2GHK/ugd58H7nRzG/k/q0/wP/f/4A0B8UMP/34=; b=ilGsPOBg2N1oMGjYewX0FcMH5sDGDgLyeH02A3SLynfq7H2t//VODqRIPUvnD+l6BnETBkkMnJ/9sRRc/3aUzGwYepfwAaZTO0qP15g3ufr3XpEJdXGNwDfR7CdfAf5myt71k2wreNdXIG5VyiSknSvZD8Z4jU79SNCN7siA7zQ= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBBPR83MB0614.EURPRD83.prod.outlook.com (2603:10a6:10:533::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:37:44 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:37:43 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 09/13] aarch64: Add SEH to machine_function Thread-Topic: [PATCH v1 09/13] aarch64: Add SEH to machine_function Thread-Index: AQHaZPUO296W7vMVLEyl1MVL/82Ekw== Date: Wed, 21 Feb 2024 18:37:43 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBBPR83MB0614:EE_ x-ms-office365-filtering-correlation-id: 60d3336a-d5d6-4b9a-4c4c-08dc330c3131 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: n67WfcQAGw4oaZ/+A76JpqZyhe1ZYovesVrT3bN/sP65AFGWsHCuil/L/oDMKU3hREtYExkqFygOpPrNQHiPr8Yn5mrnwq9xGK8a0xgPQf1Bh+sTW7hgL/l6gVIqYi7H0NnbsxuvABTqlhJ4jcF3K93K5rZZSNA8K5gpKiXTO9QrxfqU0qUzT8kYwSzlFkWX4B/gqJMiL6usVkl7QeLvZ7M+KZQrwglMrwm2tsVH0sWqPwe7+xxrmdeS0rOxEYbVmgi2kfpSM2tNGKslUcK5JicD1MWqdEk+0//Whr1T9lX2dAUVNaV0yBjVMPB4VoLBqDkA7aVMgzXnK621ZTjiy+1mKnn46CpnDIu3CzLfYR0= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: PzSM0oF9+4EQBXi6BaTyJcJDOSC6VtaT3j1zZOoJqpGXUoaG7zUGnTHs2f1397QlqnqQEw1wOyluBQXn+zwCLcuVpWdnJLnJQHRWClEhQvpkQRC7GtLjcfU1sTmpSNtDHPO8WZOFSyLkVaC2/fa8p8l3P/RoWLjQUW/JzS68GPUghlGavUW39BZjq2yeq5YGpxzG55lGxSy0aBLKN44Lc1qtQckktOjtedUrOU2PvtLuD9rJLDbIHhW4NHI1tN8mNp34Lk1tnES92ZdSwOPHqV8XWklLp1JJiuZnz5WgmQnFr2K7kPUrGB5RbfdCT7AkxlT915c+Ovh+tm+nouI130xa/8aMNHe08vHgs3x2TgFIyoVqabn4HWK8x4ICTD3R9QG2PYSP26j0d5WBC1g+1itochmJdbuOKcd2fZmCKA72jMJ75DcFC/CFNNIjSi5Iufl19u6w5W8pl8+yf1jn8U7haECtRykt0liQUxUtyXAR2LwhKhl0PbZJCHRQCyaUOhZMztbq09kM2nVt7wnvRM3XZEzzlApYlIiSZA91Hgjy+Rf6zytsleADvZkJge08a3ck+5q96YdQayw3+mCQYmit5KJx1nAWZsmceO+1eGZaf8XeGe2RVJbq4cjy/aTG7rLBLK4LEMGudxR/LmzzsgnBr+EmfaVZmEv8TiNMkJFQFyFwL4cqynlQ2JsissRaqE7cHmIZx4JikYAtfuriwCTvFRh3aP3Titd+DiHdTx8f+l0zf8CGYIGLPdxaTt1aohcJs/23hNNW2VrttASiQwSPUOc3xopZrcjlki6ljR1kIpeBbocb0gpgkfPQPV4grrBABGJBGu392wbuE/7OM/qMqfRTauDvaeRSpdGz5RfyE3qm1EGGbtmbN+oebyqCMbi3r/dOvmWfcsGyCNu18lSV1DykAO/dEBPOfdSXHe0Rjzo3CIWH5MckatJcNTUn7qOG1tvcPjaiXYtu4XkvvDcnAlCJd+x2Vdh0JOKyK0w+j3K6Vr/Ltf5HPs5QTI2OYbraI1RGgf1b/kPrHF5T3E09TPmlgHhY3eVkaZH2wS2hlocPiPlfOIYGyL1d9mz2Fk3vXwBwRIxZDl3w9uHwj3uyBLCXmfexMUv19KzJCgcheM1I9yjBVyNTHZ8jLi1JT6TBczP7Gt+j2gIU3CGM2cpBCGy4JHBS4orxLgP8CUygh1525hL06cA0uhSvHn7GboNcmQR3l1YPhzvNHSd2ww5d2/IjLpP7NRCip74b9fu5+c1y4ys9sPRuXDhkKeLqrhm4UTPf0pPj1GJZV6Fg8naphhHHfipAeZja6d0F6IJlHhrZntk6p/zsnYqicZFA/mVJJ2uGcTPkVMcH2SbCfflEj9kqKXQWbfv6JD+WsVZmmvK6KXdIYigCgfDDiaXpZRxSVj35Qx03VtbEbf3kWkXaWnBrGb10KSvOxU93YQ2WLPUJHnuj3jWpvEGSuVikWHS5FmVTxPCPo/La89DJJJ5zHuZseCxPpZhEsQZo3paX8UkMcBkUzkvL0vuImb9XCzXzuD6/AB/VDi+paJWcY6cJYNHX6vQ5kB22CJ4a/SuXMy5pdemNSDptkDXdgnOC MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60d3336a-d5d6-4b9a-4c4c-08dc330c3131 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:37:43.7194 (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: iQQWwYKUOstYh/cZAfsZL9dAD5aF1beR7hJ5sv1Nvwq/Kk9zhuo1Gn/PiT2d0OfE8DPRMuH9UDS9Wc+pUpCW7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR83MB0614 X-Spam-Status: No, score=-11.6 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From e82f58dc1ef9405a86f6e77c29fe2359128a22aa Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Tue, 20 Feb 2024 18:10:08 +0100 Subject: [PATCH v1 09/13] aarch64: Add SEH to machine_function SEH is not enabled in aarch64-w64-mingw32 target yet. However, it is needed to be declared in machine_function for reusing winnt.cc. gcc/ChangeLog: * config/aarch64/aarch64.h (struct seh_frame_state): Declare SEH structure in machine_function. (GTY): Add SEH field. --- gcc/config/aarch64/aarch64.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 36916e7a97d..7f025e74a66 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -1055,6 +1055,9 @@ struct GTY (()) aarch64_frame bool is_scs_enabled; }; +/* Private to winnt.cc. */ +struct seh_frame_state; + #ifdef hash_set_h typedef struct GTY (()) machine_function { @@ -1095,6 +1098,9 @@ typedef struct GTY (()) machine_function still exists and still fulfils its original purpose. the same register can be reused by other code. */ rtx_insn *advsimd_zero_insn; + + /* During SEH output, this is non-null. */ + struct seh_frame_state * GTY ((skip (""))) seh; } machine_function; #endif #endif From patchwork Wed Feb 21 18:38:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86190 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1DE723858C52 for ; Wed, 21 Feb 2024 18:39:32 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2100.outbound.protection.outlook.com [40.107.105.100]) by sourceware.org (Postfix) with ESMTPS id 61DB13858C42 for ; Wed, 21 Feb 2024 18:38:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 61DB13858C42 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 61DB13858C42 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.100 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540730; cv=pass; b=jO3SXG+S60NyUvlzODdhXpBRWjZo1PbHvlf2vrFAKSFrcuY0EqKaJtG8fsykWyLe7y9i1Zha+C2ORQs+4bui8jpqmm3sEluzQyXcC+2gM5GbY0PNZDIzz4bcVWS7f3/LIEvwNBcqxIAxJqR19TJmfF1OTvPNVkJgaFLcrGoyrK8= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540730; c=relaxed/simple; bh=uLpxw4iTSaY411sH6HrHOjdPgAoiJRcVcuUKq1+D+9c=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Slmp8COi3G3IEjxhefHnn3ShYFpKZDxO0UjMobBaeAzu28e/lfNfIaCbgsCz+j6f6tGh2vOWObQLPu3mJbg6xlzKhCelZJ5uKatGJUxZ/AiBnCu9knZUWotHSyQNNWsAEdlQeglCgtM7iqac+3XClCyu7r3zfaVm26NTfHE/29g= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZSOLL5ymOWySVpoflKjf/mCV+W2Z6OBXhhWZhiB9brMqA+YEPG7ToXjitukgPICg6uoT+3YEnBkE7ceqU5p2tR1IxPlL1cLPCme/v/+4/zGNOKTFbc1NGg9V9/2pdn1RnrNbkZNhKBwhAgr2QqlRMvVEya+GJK7exj9quJ9noIkxxA8c562IbGhWY/sw18gJ99HvNTFffXBPHGhCeSBSqQnn+GV54gEJeNf452BVoGTkif1U7nkjuTbbTj/dSiHZIcdkmqnUjJV70QVwAR/pNcp8mXWNVNTvOkC6Tz5NaYjDuWQZkKVsH4fry2/kr65o+LC96KwYnaHJX575cYh5XQ== 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=qsZPaTUCDK9WsQII7W6YzsPYd5yTmhArOjfT7Uxo7Po=; b=Eo86AXn1jbl79+y2EWeHrm1wkjPYar4wNlfkg3ntnKwONYDkVR2PluA8QjEBggsFZmz7RxaJIC/DEIh4iHztKBf1JM96C+S6FFCfEnaFiWpEJaS3E7PMeHTLdrNMl48PaWgFWNopuMHIWDzE0/gLU2HSXKJHNFl6wkDgGbE2QSANlJ0vWSmvXGix5tF6q+q1PN1Ido12vJLJwiP1l1lek4qUaC87qmYoKqsTg3ejrywqztIIg2H9RIMv597gfO51ZFWrmAQPY9PbYNYELYy0Ht2/+xL3cuKBFEu9Je2Z/9YlWBPWvCWmGMo9h8S7RpOPPB1qMUAa42GQyPrH7Ky01g== 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=qsZPaTUCDK9WsQII7W6YzsPYd5yTmhArOjfT7Uxo7Po=; b=gPEsVxd0WufdjB6VzT3WeaFlssaF+IXw/eEKAnmTa5J1qsaYyYLQNFLW4U3E+MADx9ZoSLvmzXSxRrxTGSX3rQOPkUs9VD+eNWc2cGBu8VKzJJwOHSfAy/L9k9uiaiif3z5tYp7uUyEYHaNq5xsN5vX/pTTISldWINY2AhX0Kek= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBBPR83MB0614.EURPRD83.prod.outlook.com (2603:10a6:10:533::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:38:45 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:38:45 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 10/13] Rename "x86 Windows Options" to "Cygwin and MinGW Options" Thread-Topic: [PATCH v1 10/13] Rename "x86 Windows Options" to "Cygwin and MinGW Options" Thread-Index: AQHaZPUzFoDi3KuUP0ucu+cBIAgS3g== Date: Wed, 21 Feb 2024 18:38:45 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBBPR83MB0614:EE_ x-ms-office365-filtering-correlation-id: f768f6fd-2b80-42ad-9ff1-08dc330c55bd x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3xxzy8J+1Ef5z8SftbsQ1OhNveT2x6CFMq4ij3/2TId0pYaF9Wk0khqndxxEXQ2XlNg+kVZSku3jc9kM24wyUUS5VlUf83qG8rsnhpkZaiblTiLzO5h7LhD81Kl+jXXvTKwjPmLh4tu8bupuKx2mg90AAc3Q5Ep4syOpj9hTjYXdWN+P9snKjoJXUo4ob3NKDhp7zy7t6JoJYb3Wd+ucoTGfLnX7PWTjo0mqxr6jIZEqdZQFLbuGecsJDVOEj0B3jXARo/YWVThettkDReQlovb7TGNdWNq2aa9/BJb5i7pAeBLgwzUBwhUXU5E0p9fNSncIQxNuQSIHSzbJ+E77JCnBCkAS2VUIKUHn8jNpZYc= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: obAWjjotQ+bU+Io6YdeESz2pjItrNUUNzxowzk4zdTghDisW1+nHY/ncezcx1KpvezhFA2ZrEzLoiQKol8//QiorVsxqI/Rmh+lczV2ExxCUhAu0dcfJz4FUQj2K5vs/JOb3XZ3LpH+Q+N0oIsw7DRIj/Kgu8t/BNLHyqIY+jFeEjWqVzg7QUv3YGMVQJI5vlLkPySlH3Exr5g3LtYwTFjS67fb+ZyK8B9M+neyeBeZgyzgqJZl3J87VpX2rjZZcmkF1LfBWlU1cwJsklYL5pz2j8yHKgtf/9+GduyC/obw600C6ZF+eSPJXteFe8CwmVZxBLXEkLuQpQRvbzfo4avbU9I1tT/R91O3oePIe0UTj1dBw6c8gNWP2Ia9Ydn4f//e9yU77wZL3t4IAohr3u9aCTdo98YS7W1H1RK/W7i5ry/dHO0eymSn/O5QD0L/xlc4GeD8ON7+7jax5tFUOQ1250geyqg48csd+joR5Ig7KPkzOugBFhmEbZN6XcoSbe03R9hhN3MiVSO/UcFuwn8xpyZhoACGq5QhIl0Veljxqkva/obLfK88OMh5a626LeMRoGSU1PbUzaGBrY5NOimUEXnl25lOdh2+MXpfrta/cCK61XzDPCJY6UiXFws9F3TwHYifkmjR1KxUZ9lBZHIjOFGEBJf7JcHBrQ+V6fzT3zGXotVKDt2pAPWdbFEv8uElBahr7JHqQT4VgEhVmfuNvjiI6CgbtzvGCMYtMCPKV7ois/QU6oOyiOBSqMVTN6FxlirUHUSsVwAA4HbKZ9FD6cDAv6hMETR4gbNZ0WeedBJwj++j23dCUj6d8rYjJD33RsFu+vX8I4XBYEud9AoyhkBQJHwNUBvcph75+Bm6tTJ/GDpy2JMBUKrWFw1mFZfs2XM2/8NiAE0C291QlDvzNYTpCaIvq4rWGTNHT6teuO659vpHKrP9hN70DasXmYEWUwabYySqE6U/HRmdWiO7Gg126UIgexP5uG+7WXN4/YmjmIh4tyDFL4cA2BZmXcQkZ59m09MsHPPCm3hU427stKvFW5QW3UiOFczmo342ASzCb0Hi07hM7CHjXPU6kbM9Xi9GGQZEGtZT35uhgisYDdBTmTgLPYZQleyxbXAwYlpLujLtavxyvXKhEM7tFw0YmnyAnWdhEzOogcS9RYEkq0SFlDTZ6aRmSbgh1l1GgIMVXJiAZnO3PxJOglCs+MgfxtHGaFgQDmLLX36DRsttTdPpNs2G2lbDZyo9BTR0+L6n49E2LyY80nf44/KBJhNVT4h0b2o84HCUoGf4R3K59O6XmvQLWM5FO8+C/LbDVlK3xNHajtzRgXRoie0dRPmzVXGfG9WFzmxt5LDO2MSypLBwHZyZlHACKMMuWVM2GdFIRE7cf8YCBjh5DDwV3OTgnp7oRZjqOY4/5i8kpRzuFwgdOEBuU1cUWvxkRTCHtgS4gSa3mHMbY9HoSeC0F/sjUypSVhaxpy7n0ODiYr5bIjeneGBzsdyYguoPm3ysxPNy6FqK62NH5jDBs7lfL1y88c1AFJpS29e/h823jVVPjl3VNA78mdwGvqmqFIatzdePE4GqCN1pZDhnkGIj0 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f768f6fd-2b80-42ad-9ff1-08dc330c55bd X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:38:45.0333 (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: Rvgv3945zRXFBNJzLI9zjmh9Dm/xipfbmmspOetvnl1JG7zAaGUUjHbPkkFwy+6LnBRpyD0waAIsJt9djpJcog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR83MB0614 X-Spam-Status: No, score=-11.7 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From 7d27cda54a56e93ba63c5cf4d47e5c865bdae525 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Tue, 20 Feb 2024 15:45:53 +0100 Subject: [PATCH v1 10/13] Rename "x86 Windows Options" to "Cygwin and MinGW Options" Rename "x86 Windows Options" to "Cygwin and MinGW Options". It will be used also for AArch64. gcc/ChangeLog: * config/i386/mingw-w64.opt.urls: Rename options' name and regenerate option URLs. * config/lynx.opt.urls: Likewise. * config/mingw/cygming.opt.urls: Likewise. * config/mingw/mingw.opt.urls: Likewise. * doc/invoke.texi: Likewise. --- gcc/config/i386/mingw-w64.opt.urls | 2 +- gcc/config/lynx.opt.urls | 2 +- gcc/config/mingw/cygming.opt.urls | 18 +++++++++--------- gcc/config/mingw/mingw.opt.urls | 2 +- gcc/doc/invoke.texi | 12 ++++++------ 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/gcc/config/i386/mingw-w64.opt.urls b/gcc/config/i386/mingw-w64.opt.urls index 6bb53ef29b2..5cceba1d1a1 100644 --- a/gcc/config/i386/mingw-w64.opt.urls +++ b/gcc/config/i386/mingw-w64.opt.urls @@ -1,5 +1,5 @@ ; Autogenerated by regenerate-opt-urls.py from gcc/config/i386/mingw-w64.opt and generated HTML municode -UrlSuffix(gcc/x86-Windows-Options.html#index-municode) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-municode) diff --git a/gcc/config/lynx.opt.urls b/gcc/config/lynx.opt.urls index 63e7b9c4b33..b547138f7ff 100644 --- a/gcc/config/lynx.opt.urls +++ b/gcc/config/lynx.opt.urls @@ -1,5 +1,5 @@ ; Autogenerated by regenerate-opt-urls.py from gcc/config/lynx.opt and generated HTML mthreads -UrlSuffix(gcc/x86-Windows-Options.html#index-mthreads-1) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mthreads-1) diff --git a/gcc/config/mingw/cygming.opt.urls b/gcc/config/mingw/cygming.opt.urls index 87799befe3c..c624e22e442 100644 --- a/gcc/config/mingw/cygming.opt.urls +++ b/gcc/config/mingw/cygming.opt.urls @@ -1,30 +1,30 @@ ; Autogenerated by regenerate-opt-urls.py from gcc/config/i386/cygming.opt and generated HTML mconsole -UrlSuffix(gcc/x86-Windows-Options.html#index-mconsole) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mconsole) mdll -UrlSuffix(gcc/x86-Windows-Options.html#index-mdll) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mdll) mnop-fun-dllimport -UrlSuffix(gcc/x86-Windows-Options.html#index-mnop-fun-dllimport) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mnop-fun-dllimport) ; skipping UrlSuffix for 'mthreads' due to multiple URLs: +; duplicate: 'gcc/Cygwin-and-MinGW-Options.html#index-mthreads-1' ; duplicate: 'gcc/x86-Options.html#index-mthreads' -; duplicate: 'gcc/x86-Windows-Options.html#index-mthreads-1' mwin32 -UrlSuffix(gcc/x86-Windows-Options.html#index-mwin32) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mwin32) mwindows -UrlSuffix(gcc/x86-Windows-Options.html#index-mwindows) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mwindows) mpe-aligned-commons -UrlSuffix(gcc/x86-Windows-Options.html#index-mpe-aligned-commons) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mpe-aligned-commons) fset-stack-executable -UrlSuffix(gcc/x86-Windows-Options.html#index-fno-set-stack-executable) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-fno-set-stack-executable) fwritable-relocated-rdata -UrlSuffix(gcc/x86-Windows-Options.html#index-fno-writable-relocated-rdata) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-fno-writable-relocated-rdata) diff --git a/gcc/config/mingw/mingw.opt.urls b/gcc/config/mingw/mingw.opt.urls index 2cbbaadf310..f8ee5be6a53 100644 --- a/gcc/config/mingw/mingw.opt.urls +++ b/gcc/config/mingw/mingw.opt.urls @@ -1,7 +1,7 @@ ; Autogenerated by regenerate-opt-urls.py from gcc/config/i386/mingw.opt and generated HTML mcrtdll= -UrlSuffix(gcc/x86-Windows-Options.html#index-mcrtdll) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mcrtdll) ; skipping UrlSuffix for 'pthread' due to multiple URLs: ; duplicate: 'gcc/Link-Options.html#index-pthread-1' diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index e18886e0ac7..eaa1e3dc6d2 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1492,7 +1492,7 @@ See RS/6000 and PowerPC Options. -mindirect-branch-cs-prefix -mneeded -mno-direct-extern-access -munroll-only-small-loops -mlam=@var{choice}} -@emph{x86 Windows Options} +@emph{Cygwin and MinGW Options} @gccoptlist{-mconsole -mcrtdll=@var{library} -mdll -mnop-fun-dllimport -mthread -municode -mwin32 -mwindows -fno-set-stack-executable} @@ -20970,6 +20970,7 @@ platform. * C6X Options:: * CRIS Options:: * C-SKY Options:: +* Cygwin and MinGW Options:: * Darwin Options:: * DEC Alpha Options:: * eBPF Options:: @@ -21014,7 +21015,6 @@ platform. * VMS Options:: * VxWorks Options:: * x86 Options:: -* x86 Windows Options:: * Xstormy16 Options:: * Xtensa Options:: * zSeries Options:: @@ -36094,10 +36094,10 @@ positions 62:48 can be used for metadata; With @samp{u57}, pointer bits in positions 62:57 can be used for metadata. @end table -@node x86 Windows Options -@subsection x86 Windows Options -@cindex x86 Windows Options -@cindex Windows Options for x86 +@node Cygwin and MinGW Options +@subsection Cygwin and MinGW Options +@cindex Cygwin and MinGW Options +@cindex Options for Cygwin and MinGW These additional options are available for Microsoft Windows targets: From patchwork Wed Feb 21 18:39:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86191 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A046E3858422 for ; Wed, 21 Feb 2024 18:40:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2133.outbound.protection.outlook.com [40.107.105.133]) by sourceware.org (Postfix) with ESMTPS id 5F067385842A for ; Wed, 21 Feb 2024 18:39:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5F067385842A 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 5F067385842A Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.133 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540781; cv=pass; b=pBDByja0ikRrRBBsKHoxRy7tyEGwgIreOSNV8ZPgp3ysyexX5oma1ws74EePjzd2KOPmHVkcrbAryejdwPPaH2tbJg6jizm08xUXvUGnlsHZjoi/OtEdcyeov8+xmQaJCcHJrxEj+SFBtsxVMfjQgxndrEE2JeiNlf7ZsEyVe2Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540781; c=relaxed/simple; bh=vF9OVKByRnhg1wi6eH7YmTua7PnVTUMKGfH8lDhqk+I=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=U4srXj+yTPnDImQMt1s2FLG7YwJIUzIb2S4/UtnD9bVCF1xASS0M9q5YuIGMMF7+PkGp97geDOPnqZy9EX30Xmrn6kkjy8pnCOmRgzmo/Ev8KYBwAZSG5C2a8SYL1YfmzqABt1nMJA+zKbl8rIoxNP5VzeUl6Lg6Um0ulpaCaxQ= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UW2JqfDrLA5d6CssL9ehIDDRyM0TUyWkTsUBuY0kaNRjPbdTkJcTwKHb1k7NfipOigURYAi/tKo8mgOKVQHRozEmVLWtwElNb43we7M2VcMbbdeVKOyruuq/4/9XFIP+1kfSdcOaXOC5lJUKwGfZ15nNSWBYjNSDcrhJ76naITSYLhuRCJzKydomMoiOiprplvfCTtPNgfq52P1nLGlkc1Weubp32RLjxkTGzS9N4tRoiF3ktLKsy8c8bJqkVGllHhg161PqEoeSXTtsts5/qGxLa3M/cwKAZDDG6KHOjIUoRk0BSm66Z/8rV+eHd1pDsLSowFF30bGQyw89MF6cSg== 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=umZpfPWREjlQBNWsJ2lI9+4AVhWAdh/FbNC+ZG3qkTk=; b=jtW+Fp0TfJiuZHVLdQll/0YLZqB04BKDQf8mUYbXrYzXVVvV+sVGmydt/EsT0/e02wk7OveAlSoNdI51aTJyUr3jmj7CpFBubDH1h1KVFo41DwYeQOHIgemIeHGVSUBNQLZxe7ZLuQavbKeyJ4eeAeWz6WprDWQGPQ448vu3M1mmFgKvABnY01gC5vnPOdQjoxGFyTaVbCgZutHTZHMHW6Z0BLRKWnV9h9tSpJ2EGcgV/A2zWLQyLcoxdmcs7qsLleyeFQTfVg5zgP9J7BVrBpkFix6TVA9H0AbKLrhx9tfIGI73jjmDNl++Ez29Q7gyKqiL6u6J2xq+lngPj4lIJg== 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=umZpfPWREjlQBNWsJ2lI9+4AVhWAdh/FbNC+ZG3qkTk=; b=MeKwjrW931/F49OQa6domD67JthgK0+qhDdWtIvr2OLILBb7ufZYXwPBPW3JgBcA8wuksudAmmFdYp+LcowM3l6XkF9TAKTuYpnkPmy+DdcY/ItStS8UzIdGsb2f8dRsmrBreCJv8xE28RJNpObzAOLFD0nfsrK6Hqa8C9rJS18= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBBPR83MB0614.EURPRD83.prod.outlook.com (2603:10a6:10:533::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:39:36 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:39:36 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 11/13] aarch64: Build and add objects for Cygwin and MinGW for AArch64 Thread-Topic: [PATCH v1 11/13] aarch64: Build and add objects for Cygwin and MinGW for AArch64 Thread-Index: AQHaZPVSDLGoojgsMEOqbEnzATsYag== Date: Wed, 21 Feb 2024 18:39:36 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBBPR83MB0614:EE_ x-ms-office365-filtering-correlation-id: f69e19de-d61c-422b-853b-08dc330c748f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uswngQMiNN8UJyonfO7EkgjOADP7labF9E7Ls1xCsgrBu956R+pLzd9d4qq6qYhFA9AFzwVjAV7pLL8uXYD786VVWQurjnMuDAmdmftyig3Awjx4xyo6qLiQK3VT6QtTEeJ1sK0gBNZ4BE796djx/U7Tho8eF6T/H4GPfyGXjN5j8LWjMFmB+QlXIbmMuOjU43pCKGCz39AnlP6r+wTsnAdl+jdfcH0Vj8ArY/KyRMtef5H1x+KYYGKSSp2Cgnc7litU6zwMViITfWbp+cCunK4QdycO+mb77RSIL6aqDq3sDgkkqKGd3kpZiOdaix5JsDTw+OSZOTIsTATZrQu+ZCtqUUK1sJQrVKznZUOS08Q= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: RpHvuWhvPFUuoUomwTtlwZvvxIA76p2+M+Kf0BLxLRRZxyHP4b72QRv27SRqRUNQ0H1oQqx3bA4oEXUNjx2DhQVIOgqNt37iqxyNxUvjf3t7m4aKmWpZHMkuPElw2jLTSXMxpai8utNwG/ArLHwUBHdGXesLfNd6FOaa0+aKtf4QJCUyPPEQJ/5HnPbfUrbke5VF71Tria7DXYGMiid+aWG7Q2xM9ty8r3QCg/o0K3X++GnrKtoTK1uDVPV70hTpB9/ynUEr8lwVSBVGXHdJlefS93jVdGfolPyM1by72Nmj2MBZXf1GwG/kDiIjUMxL3ZRXc+3kTrIcp+rHgU+DSYUok5ov7AhLzsZtZ0P6fBXjPlnr9SBtBgcS9gquW2kCo3+Qcxt3kPTfe4QfgJ2XH6Bw7/3SuzlzT5APH0A31vkEcFkhhTfbFvRiCRsbUD/qRQvAftlbvlmJ0t+/NgeFn737t1aSp98WgCrekXCG5PTr/eUGH1RFD9l+3fc17i+rQmU2v/Ifswe+fDg3YfCkqOMiPBUucY9CcHtsSqyxk3KXlVA5IUWxja8uIRiqddcd87Juivo6mR5VWpEDb0e7QqN4PJ2N23YSi0/WuUDBOqVWGxBEO0VyR1ONRiEXuDtzlM+AOkTcf2MCC6NA2zwQe4WG78ZWgAuKg60w2m/dWVDvIGlZNovEVBLEySPH11uWi6BPrFyngGsw7iV+pY1zkogjpAo1Xn3Z3JTKgbraS01rac/5ifdbKhHHTHGVwIfV1yXqfEVuTT1odQYh1SgVprPZw2IBzgWdfI4/DL4ldKz2bb/jnKlYGSy9a2Db+3ztrJ2Kmz50mtMKy6r6R3KzzLNW9KrejY2pkbHOxEthIjw47rs/B6vZ6ICpBLuEcrthu7+tyGOlX/XAcX52X2VkVhJnp9mBffSAxRgXZTYOXAR2moClckRE4wSXc9LIUw9K9QxSXYw8Upf0xaFrGy2X6fw6TraQRV70JqgDC2bXh9DK/vXaoovzUgj3dNngnm1ebX73HnINuSsotPX4z55v973C39N0mQp9DiPq4AjDs2NiBUxm5p5cvH/YYRBDd2vUkbo02Jsi4e8BDQZS62AKhNougn/UGtHFJR9aXTF8zU3Sew0Nn+iMLppa2kw1Gy9RaJcN4cW0jIj/DeAfMGpkl319jK4RmouZluzwXrw0wbVucgJE1os06pieiyPAbEjcCGyYopUN9ucicOi9DdTJxtdgcYL1zY81QaomdQlwNZAw+xOmM418r0fqRseNk+FrO/AOvsoUkJakw3JHE4g8sTL03coVszm84hBQUw2fokIc7tdsCcVisistcvZgNyZxDm+twd4mnQ//kmwlUaIwgB75P4Ue8SjapoyKDcvE5BHHOjfZUZRPk80oxzrfZzw3vPKqZftyn5vCpK8gzHFrVH2SUgyjfCcOb+c/AbTacgkMw9ZoUaSzJu/rXmBrx3ckfzvaRy9odTfj0XdEYnK7D9JWLAM3LSb130zNwdjUQ8mAX8KBx2YvnXMQjPcTSwP9gJjm2awrmDpK9VdmFYfqp8O/GMGGj+otdjH9mSH3ySdUVrGTwOnYv0zU6JnO1IgG MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f69e19de-d61c-422b-853b-08dc330c748f X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:39:36.7461 (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: 5EBT5v05YL8cT8jWAOYyEP4FYNpoomCbvZiNJFi2424jkJkrQDoBzVWCyxm7OtWC+FbN3D1+xIzwG7dbR4o7jg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR83MB0614 X-Spam-Status: No, score=-11.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_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From c00d64291446f722dd2268aaca6ca156e9888fe7 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Tue, 20 Feb 2024 13:55:51 +0100 Subject: [PATCH v1 11/13] aarch64: Build and add objects for Cygwin and MinGW for AArch64 gcc/ChangeLog: * config.gcc: Build and add objects for Cygwin and MinGW. Add Cygwin and MinGW options to the target. --- gcc/config.gcc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/config.gcc b/gcc/config.gcc index 96e3508eb30..3e839eee369 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1270,6 +1270,11 @@ aarch64*-*-mingw*) tm_file="${tm_file} mingw/mingw-stdint.h" tmake_file="${tmake_file} aarch64/t-aarch64" target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc" + extra_options="${extra_options} mingw/cygming.opt mingw/mingw.opt" + extra_objs="${extra_objs} winnt.o" + c_target_objs="${c_target_objs} msformat-c.o" + d_target_objs="${d_target_objs} winnt-d.o" + tmake_file="${tmake_file} mingw/t-cygming" case ${enable_threads} in "" | yes | win32) thread_file='win32' From patchwork Wed Feb 21 18:40:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86192 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BB89C3858436 for ; Wed, 21 Feb 2024 18:40:53 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2126.outbound.protection.outlook.com [40.107.105.126]) by sourceware.org (Postfix) with ESMTPS id 436623858413 for ; Wed, 21 Feb 2024 18:40:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 436623858413 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 436623858413 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.126 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540819; cv=pass; b=M9fVK+awm8tGur6uWefw6zyCwF7w0hrYMDzormTAqtICfTG3PbcmYSQmCbcOE88L3dqg5G5i2nCYAXkFOJa/c1xLf97Zf+kYrwn1N5Zmldw3fXDFUHBCT4qt9Lv3lfRHP/b7KyNGhyl2yzIxGBbue5Ry0Z8kD3+D/YHwQjqDpXA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540819; c=relaxed/simple; bh=F6ujpJyfH+huR3WC+WnQxrVFh+EBg+oQHOlXuAvF/Ts=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=iT0Ujkz/vZdmfN/Gsqn3E2/LSgghNIEzgnmnQ7XeaE2hc6GIv4/76/5T1AIpjMNLCJ/9hYF8VR2zqGGiO/HqQ7prAMnIg1Mre9ydszks2f4Vbc3jMhEN/yM6FTo6PPuUEdDKx8dK4Ck6HXua3q3RH213pjuYZw+/U18VPN9FI8Y= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YkR3DX5KBuwKWJRf0npUSVcnz8NU8c008jocsRWX0F2lvlb0X8o+qkqP+mU45aUw0exASPJqhSm03u4NjYAsdWe+j3RIuJu4QunshLNRaDr+fEG18rwswOyInOqx1+srI6AJ5WI4IxuzIo3Vh1yM+IA6aift/tQBRsWX4aX/BOcagwDS7zzwtSIqU0LgVICr+VVoQtnr0YHp+gNXnAtjmkl47B1NtC/fwLS3WYMfeap9MM1+cnKbZa3fkttcmz9pPCvPDBsSN1yo5NOXGeET1t/ZittstRju6rNoNU83iisGEOmTu82LyDXUt63gSZZIyJ58kHhpyJsTtctv9Jjmag== 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=iXp2BKqlXoVOnAgkRo+o7HfJPd+USBJBYdFTTyjSBsc=; b=nhqEWCL+4dI7JsPC+IeDxlefgEu+a23O3CvUvkvsCo4cXXgooO1hRSmktSbRyIM0QbQhwFeqhjjycyrvSB4Yro3WdsXP/WK1d1EDbzVQkffMOUNS8hJcjNwGGYuSuqvypYg9QsxUt23m/8kmDBUX8bzb/86AHUf+oYgabXLL1rJeq4oktLQobzu8q2/oXD5mi9L1ItZZzTyIy6OA/R/+YDDo38vKsW96YTV4u8jsAxocGqzsNQjODWal4t/Zkt8HefzLJ2oky9Jkkk9POtnNotUbljLGYfnLwIb2F/QSo+czR41EFtB9aoDMMH7q46MlJV6z8Xi3y2xv7E9gDsn3Xg== 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=iXp2BKqlXoVOnAgkRo+o7HfJPd+USBJBYdFTTyjSBsc=; b=QeBNCeZ0JXhGEnOJ+O5X4HrS6RKLG5ie/gGQowirSUyjyIVbc61+5Ek23ND1/y12lmdVnWl7oLVxhSW8bMLuitYmtlj16nTQYik+OqarhMmJcGAOKagDqPTAEKa99j01jIBjr/leiWbCF6j8flk0bcZG7hgjYV+EuCSFzgj1698= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBBPR83MB0614.EURPRD83.prod.outlook.com (2603:10a6:10:533::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:40:13 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:40:13 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 12/13] aarch64: Add aarch64-w64-mingw32 target to libatomic Thread-Topic: [PATCH v1 12/13] aarch64: Add aarch64-w64-mingw32 target to libatomic Thread-Index: AQHaZPVnvcH/YjQmmUqv3qTJtOC+4w== Date: Wed, 21 Feb 2024 18:40:13 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBBPR83MB0614:EE_ x-ms-office365-filtering-correlation-id: 300a309c-4dd6-4e77-3ff4-08dc330c8a75 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5YpDpSYaL0knKfF4O2PjcqeiwkYXqSXpOdZ9aqfIM6WOx/5iPWHbdhJRoS0e7JUVAqtm3C8eS+K/VbKZ5O5Fsj0+Jb7CIUFLwcw1NioR7Z0s/y2miDFSTXU/wwwAktoQGAPDWHf4QkHXAfZiDGc9ikPk6lURHLTlRioqWTQdacUB7rDpCNEMG9ifpfxVfLPSyUnHgslM9PTjInjLHNKv/AFAGrXY9J3Z+BAS1VzHTMtUXVmwKTsITmyYmiTux//yWuNxAo+EIUXQ5HTRFDZw8Jb1plfs4v2wtJJ/ZHgeKCMhE+WN/3aDvFvrkS9HrTP0EMItKtXg6cOi1MUd5/3hs0HaQPzGAVegfEeJI6ShB48= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: zpn0GC8/5/MKadS0YeKwf1RaQ4clfcoWsc9tutfTwj4lyFkglw644xRIPST2uV+Xw4SU9uneHmJT24QPv5Bbdu0oQjbHiZW6BcfG3OdkNoPtRq4iMvVegVOD+5M33rCo9EwlUVzlzJyc1oxujtS633sv/JibL6K3hvhxQzJ4lPTdUFS5MH7XKc3doLgImmB/FOX0NoI6297MeOSv71GepFsNwEtBp91BcAoJrb6bYSuxjsUKkcAjbUBtl9uXeiGpV0KyM5YxFrOFdB4dhI3zKoqeFOFk46oEJQ7konMxq01uR5Ap+0H6T0xo3Doi8FCzhs4DcTjgB0hzpVLr/Wisw5zeLU/1kirFo9/UWBr5NhDGfvPaLSw0mN+gp7YqFNtWk15LoSCLFlV2Dm2GOe4aLpo8bmV+tkwnrHOOOMbRf2Zl2l0tlpq5RCSXaPSY6xiuhh/FFXRWA5vWFYdVsLtsTZafjd/YCunTDmUW98kQGzEEzKFJna1eiT4O0G/m4/sev+MQWgEOnU/WxedkUwj0zaCUj4I0Lo7vvPm1+RrPKXnnbNqoPQvFn6VPoiCZtBaVRmd4vKEnehBzJd4GR8z24DrJBeE8m/zhdGGoJYmZx5NXj3BVooLzvOCro83ytl+IWWGlQtrcGbAfVnsT4mnKCcsUK/YCPCL2BtIcEwKqSPC9lZ98nIpwukev6xUVzSye9z+wm3gbVTTGHm+YVI66LnVMWBq3uJ8XEeHTrhfSudWdh54DPm/3OounrMmYPfJmWp1PWuKZA+awT6UCPFDKcZrj0pS1LCZZoRvXsZ5EpLlBCklcdsH36YX6nAzZ+3rQSZAB7I7cUI+C4UU+gCI8/Z2mRQSriLcHJVRZsqAY4m6xLd7EuxamVFePd0BZJwAFujOrbI+usB/qEfr0r74NGv8GBxj/1tiER7wzAux8pf/bx/efaXASR3dR0FdpMl9YRnPZvvvwuH7tSrJditP7Uvd1Bd14pBZaPYMhdyJ60fsCq7l0LRt6xGLYhhVPHZlP9kLR+Ad0pQSRFu58W4jxQGhL0n8J1I+IXcBECO2nTKgnC4qdq4gS6dYT9b1imTdWl2lHzA/Xm8hmNo1x9Cz40wPMp8VCj/bubX+NwTFA7Xadb6IN18UCzPBBcjs8zY66B2/YsBYLLHdSURWUNAC+WBqmcpZEeotdd8ug+trsZxXJnsBwzb8p4mv+xxG6RY8Dk8oQoBGd3bbl6iyEX9+KfmMEEZpHCVoi+H5kabz/wUYcPyjerBKKXgz/TiBQtmZ7vDNlEC3Cvj3rphEen7t1h54GmCLm6+wm6ps/s7hM0R7GAq7FOqRFbJ5O2bU/cKFSqIcTJBeQ0xFc9omXvJQO51Qmj5tJGIdPJIQ2n1fvXTr4lpVrO3nF3MXO0brGK6N9rJR+D8kyZRky0iJIqUxC2Kmh0fXxHTbZaj+7Gi5/C8yHnGzGyFnLJ0g1+Vf14GUJZKQlEVjGziCwB9Il8mV8Ta4ATRiFF2RT8VanL4vZg3nzLYQTt0CZRWPitLa+A+XW8TcLiXbXLffuYZ4DSJOz/guETowSZOiBfDcWCH4vRpmOxx28ULCzthgKIWirr34K MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 300a309c-4dd6-4e77-3ff4-08dc330c8a75 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:40:13.5280 (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: Lr9dJtM1fEzIOr3CVF7u6MoNJ4Fvm1WEpBOLYRzQiEw7cYL7YZwx0tiUcDiub4sF42GRhw2Eyuhx9JPMJ64hpA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR83MB0614 X-Spam-Status: No, score=-11.8 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From d6de6d367f109e5e0b3b0a228e4f3411b53d8e7f Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Mon, 8 Jan 2024 22:19:45 +0100 Subject: [PATCH v1 12/13] aarch64: Add aarch64-w64-mingw32 target to libatomic libatomic/ChangeLog: * configure.tgt: Add aarch64-w64-mingw32 target. --- libatomic/configure.tgt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libatomic/configure.tgt b/libatomic/configure.tgt index 4237f283fe4..eea4c25e061 100644 --- a/libatomic/configure.tgt +++ b/libatomic/configure.tgt @@ -44,7 +44,7 @@ case "${target_cpu}" in aarch64*) ARCH=aarch64 case "${target}" in - aarch64*-*-linux*) + aarch64*-*-linux* | aarch64*-*-mingw*) if test -n "$enable_aarch64_lse"; then try_ifunc=yes fi From patchwork Wed Feb 21 18:40:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 86193 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D2BFF3858C32 for ; Wed, 21 Feb 2024 18:41:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2132.outbound.protection.outlook.com [40.107.105.132]) by sourceware.org (Postfix) with ESMTPS id 0EF703858418 for ; Wed, 21 Feb 2024 18:40:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0EF703858418 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 0EF703858418 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.132 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540853; cv=pass; b=jzc1AnU5zY5zqwYYw/U1dbCJh4EaMR2ll8quNeTlkt2eGhih01HaPcWzWIoRP4tISTZNndKePtEO8/YgW5ksV1ViYVtwZc8rTrNuQoTWIFo3DKEiAL5qlNa3IXJTQCGHaivhcOKNk1jVwpTNDTqLwCtwEfAYB4SbYvyRauDw10k= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708540853; c=relaxed/simple; bh=A5dF6VSZ1xN2NRXm62KDb/ciqocq8ES/ODd30TbHYyY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=U1fr01/0HlYINSTVddAy+zlL1NDKMjtNX8Zfe7wRfc14V5xJzBYa6u9ErKGhOXOIGLmDneu3k86GvIZwuXvNZ0fMiOJ72ZaDQsyUQvycJWL/rUhE0wjT6a8uFn70XkLbe0/LxnbYvZVvBN1j+1X44VvMx2keNFNszBpPWPuEJJU= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ObI+Wn7zrpPGbURIxCvECx59+ayBGCbEcgD+zcQC7zw1ZoeD0y1MkiantDs+YdKi1NcG5qOTIcETcuGPEuT5l3x+w66UFEapmoIufmejE9nRKTppBHBYaFyBZnlfS+mZQuZYcqqeTTTQf+NZuHKu5ilbPqz+ZFs3tIts03wmFhQkxLyzJO/P/IEkf6EAi1ITJghsZoRMkN/z9XfFM5y3wCpwp6NATxo7Tva1luobRzhe1EwUIe+wpeyryJYvq5f6exgHU640DMldJbejvpsUxrryj0/rBUtJMGlVVcB1DlzELWR3zn2B+Zx4oZNK31Ii5lgoBylnmCPojAriSvVPLQ== 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=6+hroIAda8MIlE8e929q6aLimLtvNjz9TQB/yOb5uWw=; b=Fw+UG6PRaG4ysVlhIGGZKdxGMTyrCvdHMN4jJxunnr9yUn4BUYdZYCJM9G0gGCwexcPrIn4haAJf43gdTABFHB+jyPBcj9opLfv0KCNwAssZW9lU/G6VzhlQN4gE4BrgOCQLBvSCgbmnyJU00+8DASinrslk5Ad7JgXGjhDrqu1aJrRxv9/PgbNxgEjxpbrKQCUCAN53FT3xtI1qr+xfAn2jnKacEGF+3o+baUu/1cBRHmmz/qUTfMdJY1iyJZHPBMRbZxCOJKkzHbNirdlNf9ybgnHCRkZQPwg/qwRJH7oOsJOWJZvNYP68VK4qWNzh3S8CY+QWcE8NKNuHTl4tdw== 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=6+hroIAda8MIlE8e929q6aLimLtvNjz9TQB/yOb5uWw=; b=hTtGHyc55alf7DQi72ZeFLyIVkheOOCjDNJdr7U+c/kUEJUyzxaimFm0Gg3c9A2b7NlkMLHykVXOQNmO+0Sh1UIi8wnSR93tbfR21W0R9ow4B7cVMrFN5pi3ao0uL35uP4zaLFMS6vi659SBKNUCMm+gWxM+VW8T5O8kpSJYwjs= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by DBBPR83MB0614.EURPRD83.prod.outlook.com (2603:10a6:10:533::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.8; Wed, 21 Feb 2024 18:40:48 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7279:eea0:8540:a0f5%7]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 18:40:48 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov , "mark@harmstone.com" , Zac Walker , Ron Riddle , Radek Barton Subject: [PATCH v1 13/13] Add aarch64-w64-mingw32 target to libgcc Thread-Topic: [PATCH v1 13/13] Add aarch64-w64-mingw32 target to libgcc Thread-Index: AQHaZPV8zqrJ5exlT0qucyEtIEbn0g== Date: Wed, 21 Feb 2024 18:40:48 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=57576bd1-751e-4189-ac11-c600ca5b612b; 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-02-21T17:14:30Z; 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: VI1PR83MB0431:EE_|DBBPR83MB0614:EE_ x-ms-office365-filtering-correlation-id: 2ca02bfe-4bbd-4b58-2f9c-08dc330c9f20 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ++js+49m/vKHjZfCkUcywdTSY0iqUqB3mRLQbHq84XttUaQuh+hOwNp9qZ8LKfAHQxobgCewlVcYg50h2zhkDP9p8BPtyLE3bYv6SQu2ffaXRpx6yleRJAPCUj80oHwmfUmFMirNHAJ2AVsWayZCHeGJRM544YwgFBjgVEfm5R44iEX5fiqVF+rg44hiQ+IAuY4MtZlWti3Q8gRZ5dr4/Rh18zKXymgb9BxGfxqHp6/a1VxBio7yT2DH5tTLiruzqRQlA00cXM4bJ0tNqPnCmc7EpjqjX1ViHuBJ1smx6NxA/LbUicZYcS33TVNNLpVaPmKEYwyNt1UrzzdWqAcEZN62kYqg18vjzsBUQQSF9/I= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR83MB0431.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: Nw5yG/aAvzWsdM537lx7qV7tzfk0ML8ufsSecB8+2lDpgAdhGc4yklkxPOvdWTcyY/Gix6XJz3N/FIijDI/SKK/2nSg2AWQLH1KwGf5Kmhs3+4ILeC3JfaXvLXzSSUSurufRKGgBeSq+7e1dFqgV6a3wFoGpUC1+xxWcf3mY5fyVvTBS9VCMJm0wcgnwBDvOL4QaaHLpc1BxyT8J9Gp/AjLR4TzqlYfBi1dC67WJkmSYjfsMH2QpxMX+o5d/Foea7dKCPKnaG5glLh0ueRH96biupwuJLnTTP2eovd6VYxC3Gq4tURVKIeJEPbT/eJ8iicknRzzzed0TR5r6EirJmHubxKspL7p+07UF7dseYffNz6tTn2XAMYNB1+IbjrWC8A6okkQlNMp84jQGLb1WEO3sal4GQs5GDL+bx5RXg6ABuoudcJaz8zK5PNuc+YL/RX316OKzoOS+hL4rgdKwxvpwoao+5b/+DXpMJPGX1MPJqnlfQlQIllo+g10YiV4O+fLf93GnVC/a12JySH2qlvCQOGdg3DjtwL1IfjLjtw4XnyIYj5CMt8O+6fuJEaDIic5eHqt7iw0Qtc9BuYlddNuBu50TXfeVYnrj3qDlUZo4VqcPw+BlcFbyBk6vOWn/e1/nUSkuonXdnZyZ7ElI862/31y4EGZeWAaJamrRqW2bMKFo9GpoUKe/SETHvIhg2y/oPwrCX+afPtmX/8VnL+eEKS2qY/XqVIWVqlwngUoNdreKhmgBJJWc7reBeNksPN4uWNsYoxPqYryn5Xy5wYFTqxfZWRpenrilsV/f7DWM0/UpZl5pvJQgvMau9nlhMtWaGdLO4E+yXEOrI2OO2TYOMpySPabiPc5HDaJbhW7V0IyJLPBUoz7PLqQ6YgdE4nGXOUJ5pCz4dRB2jD/rpXIp9kmPV9i+iK5zPCGwf6Zzkd7Y+oksbWN+VPwH7p3m4+9B1iZyk5SAIE2gciqIdYx34N9YJuGAXA/sjrs72r9tUGEwv19/Eo+pyHX+hPd4wMoM5gDvPMsN4CaDIFT9aXzo94cVnyDjaThICfhrRyeEu3UxZZHyOlmZPejpRJrjrmMQbRXTruReqRCPZdzPkVh1gkLHWHUgTk6PF74W2+uBj1FxVcDB/Ib3bWhV3HJMX37YINgC5Lss09DFdBSscI5IrxEZjEROVKK237tANf2hl+btUBACxPa5JS3eaWjhyu0Zes/D6hMQeA26GBzxZQEOqebQnxdGQldAmQ47Q+J93MM5t39iAUiZHyZKdwrNuVLTyKBqcp7qBUBonkbrtZ+QFi3D2Evyxzq8+FOwXJ+GkwgpkLeJthjZ5ARJZxpcIqXfje/8T6HbmqjoqDtskV36NLuaL2bdYYkwECH3MqGgx3aR53eSC8L6hAX7Yon2ixgqYRip/vzBKvfU4XBzxj07u95nfahMihZZYzdJDi5bN7fzBVwBBDiwZRKZgCl/G+NdAiTcKruB/4L0sTfwEQ2w8qo+Xr+nDPX3JAOvBpTv7yNdKNGKNQqwwhOKZ65vAt60lgZSuf25fJxHKSiYVunsG0jDaL0AT2su2/vHfaJlNfOA9Tbsnk9wi+PZKSPj MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR83MB0431.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ca02bfe-4bbd-4b58-2f9c-08dc330c9f20 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 18:40:48.1743 (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: yQSQF1bTO/9fWLhuuuAIw2zQzoi6gUuYXS6Mnz7jJCGiaC3Jb+S/cjTH+vxLHvDWw2DBAn2mVYA6y74dmUJbDw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR83MB0614 X-Spam-Status: No, score=-11.9 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@gcc.gnu.org From fa02812c6fb39fd409a27cd09664530f2fabd9e3 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Mon, 12 Feb 2024 15:22:47 +0100 Subject: [PATCH v1 13/13] Add aarch64-w64-mingw32 target to libgcc Reuse MinGW definitions from i386 for libgcc. Move reused files to libgcc/config/mingw folder. libgcc/ChangeLog: * config.host: Add aarch64-w64-mingw32 target. Adjust targets after moving MinGW files. * config/i386/t-gthr-win32: Moved to... * config/mingw/t-gthr-win32: ...here. * config/i386/t-mingw-pthread: Moved to... * config/mingw/t-mingw-pthread: ...here. * config/aarch64/t-no-eh: New file. EH is not yet implemented for the target, and the default definition should be disabled. --- libgcc/config.host | 23 +++++++++++++++---- libgcc/config/aarch64/t-no-eh | 2 ++ libgcc/config/{i386 => mingw}/t-gthr-win32 | 0 libgcc/config/{i386 => mingw}/t-mingw-pthread | 0 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 libgcc/config/aarch64/t-no-eh rename libgcc/config/{i386 => mingw}/t-gthr-win32 (100%) rename libgcc/config/{i386 => mingw}/t-mingw-pthread (100%) diff --git a/libgcc/config.host b/libgcc/config.host index 59a42d3a01f..3396a84893f 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -456,6 +456,21 @@ aarch64*-*-vxworks7*) tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" tmake_file="${tmake_file} t-dfprules" ;; +aarch64-*-mingw*) + case ${target_thread_file} in + win32) + tmake_thr_file="mingw/t-gthr-win32" + ;; + posix) + tmake_thr_file="mingw/t-mingw-pthread" + ;; + esac + tmake_file="${tmake_file} ${cpu_type}/t-no-eh ${tmake_thr_file}" + tmake_file="${tmake_file} t-dfprules" + tmake_file="${tmake_file} ${cpu_type}/t-aarch64" + tmake_file="${tmake_file} ${cpu_type}/t-lse" + tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" + ;; alpha*-*-linux*) tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux" extra_parts="$extra_parts crtfastmath.o" @@ -874,10 +889,10 @@ i[34567]86-*-mingw*) fi case ${target_thread_file} in win32) - tmake_thr_file="i386/t-gthr-win32" + tmake_thr_file="mingw/t-gthr-win32" ;; posix) - tmake_thr_file="i386/t-mingw-pthread" + tmake_thr_file="mingw/t-mingw-pthread" ;; mcf) tmake_thr_file="i386/t-mingw-mcfgthread" @@ -901,10 +916,10 @@ i[34567]86-*-mingw*) x86_64-*-mingw*) case ${target_thread_file} in win32) - tmake_thr_file="i386/t-gthr-win32" + tmake_thr_file="mingw/t-gthr-win32" ;; posix) - tmake_thr_file="i386/t-mingw-pthread" + tmake_thr_file="mingw/t-mingw-pthread" ;; mcf) tmake_thr_file="i386/t-mingw-mcfgthread" diff --git a/libgcc/config/aarch64/t-no-eh b/libgcc/config/aarch64/t-no-eh new file mode 100644 index 00000000000..1802339a583 --- /dev/null +++ b/libgcc/config/aarch64/t-no-eh @@ -0,0 +1,2 @@ +# Not using EH +LIB2ADDEH = diff --git a/libgcc/config/i386/t-gthr-win32 b/libgcc/config/mingw/t-gthr-win32 similarity index 100% rename from libgcc/config/i386/t-gthr-win32 rename to libgcc/config/mingw/t-gthr-win32 diff --git a/libgcc/config/i386/t-mingw-pthread b/libgcc/config/mingw/t-mingw-pthread similarity index 100% rename from libgcc/config/i386/t-mingw-pthread rename to libgcc/config/mingw/t-mingw-pthread