Message ID | VI1PR83MB04310070C9BEB9F34C9E865FF8572@VI1PR83MB0431.EURPRD83.prod.outlook.com |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> 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 <patchwork@sourceware.org>; 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 <gcc-patches@gcc.gnu.org>; 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 <Evgeny.Karpov@microsoft.com> To: Evgeny Karpov <Evgeny.Karpov@microsoft.com>, "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> CC: "richard.sandiford@arm.com" <richard.sandiford@arm.com>, "10walls@gmail.com" <10walls@gmail.com>, Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>, "mark@harmstone.com" <mark@harmstone.com>, Zac Walker <zacwalker@microsoft.com>, Ron Riddle <Ron.Riddle@microsoft.com>, Radek Barton <radek.barton@microsoft.com> 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: <VI1PR83MB04310070C9BEB9F34C9E865FF8572@VI1PR83MB0431.EURPRD83.prod.outlook.com> References: <VI1PR83MB04314E947B1CF296708085DDF8572@VI1PR83MB0431.EURPRD83.prod.outlook.com> In-Reply-To: <VI1PR83MB04314E947B1CF296708085DDF8572@VI1PR83MB0431.EURPRD83.prod.outlook.com> 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 Content-Type: multipart/mixed; boundary="_002_VI1PR83MB04310070C9BEB9F34C9E865FF8572VI1PR83MB0431EURP_" 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org |
Series |
Add aarch64-w64-mingw32 target
|
|
Commit Message
Evgeny Karpov
Feb. 21, 2024, 6:16 p.m. UTC
From c5fec28077184119bc81d927e6062704c1796446 Mon Sep 17 00:00:00 2001
From: Zac Walker <zacwalker@microsoft.com>
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(-)
Comments
On Wed, Feb 21, 2024 at 10:17 AM Evgeny Karpov <Evgeny.Karpov@microsoft.com> wrote: > > > need_64bit_isa=yes This is not needed in the patch as it is only used for x86_64 targets. Should you make sure nobody specifies the big-endian target: aarch64_be-w64-mingw32 ? Thanks, Andrew Pinski
On 21/02/2024 18:16, Evgeny Karpov wrote:
>
+aarch64*-*-mingw*)
Other targets are a bit inconsistent here as well, but, as Andrew mentioned, if you don't want to handle big-endian, it might be better to match aarch64-*-mingw* here.
R.
Hi Andrew and Richard, Thank you for pointing out there's no need for a 64-bit ISA and the big-endian target. These changes will be addressed in v2. Regards, Evgeny -----Original Message----- Thursday, February 22, 2024 12:33 PM Richard Earnshaw (lists) wrote: > +aarch64*-*-mingw*) Other targets are a bit inconsistent here as well, but, as Andrew mentioned, if you don't want to handle big-endian, it might be better to match aarch64-*-mingw* here. -----Original Message----- Wednesday, February 21, 2024 7:23 PM Andrew Pinski wrote: > need_64bit_isa=yes This is not needed in the patch as it is only used for x86_64 targets. Should you make sure nobody specifies the big-endian target: aarch64_be-w64-mingw32 ?
+Martin who may have an opinion (https://github.com/mstorsjo/llvm-mingw supports aarch64) On Fri, Feb 23, 2024 at 6:15 AM Evgeny Karpov <Evgeny.Karpov@microsoft.com> wrote: > > Hi Andrew and Richard, > > Thank you for pointing out there's no need for a 64-bit ISA and the big-endian target. > These changes will be addressed in v2. > > Regards, > Evgeny > > -----Original Message----- > Thursday, February 22, 2024 12:33 PM > Richard Earnshaw (lists) wrote: > > > +aarch64*-*-mingw*) > > Other targets are a bit inconsistent here as well, but, as Andrew mentioned, if you don't want to handle big-endian, it might be better to match aarch64-*-mingw* here. > > > -----Original Message----- > Wednesday, February 21, 2024 7:23 PM > Andrew Pinski wrote: > > > need_64bit_isa=yes > > This is not needed in the patch as it is only used for x86_64 targets. > > Should you make sure nobody specifies the big-endian target: > aarch64_be-w64-mingw32 ? >
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"