From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2102.outbound.protection.outlook.com [40.107.8.102]) by sourceware.org (Postfix) with ESMTPS id 85C033858C52 for ; Thu, 11 Apr 2024 13:45:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85C033858C52 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 85C033858C52 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.8.102 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1712843134; cv=pass; b=ojCk/LluIlHIOTPZMA7RQ0BZMCkvNI2Rr1ohezLf2IHGBgecCGosM129UQ42GsvjmoKKR9m+z8JnXwXbfOwRf9oygw9961uuxb0OxwbDvHZaOXLc4VZhHLRO/oaNICGGMzKnqN1cHbAfR3BUpgdboIHHk91QaEIX2Dqks6NekOQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1712843134; c=relaxed/simple; bh=zq9pjK8K9jNwEihei+LZcua6OkHaeRJcdjh5fm6kv40=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=SaPBA7sDXk64kHhptEGCauuQkWCEcFyS/0EUck2XDppLfwFadbOmnkmd+xOw5Oy4eDCcXgnCUxSuzMbDNhKUGCEbLm9U+9mmzapz2NAbXAY0IO8YhZck4i4jgOho1M9TX9JBHjkDzH5rW/oDlgIxmJLV+oudX8zOTJ2DmyVA6I4= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EsN1G3sP9aia4Nfw56PQ+jjYuUlPrOJzbyvaxN6laCZXwWxRSXIhk2oKR1QbD0Lg7U8Ni4ekNhxtRyFxlAjhjZkJd3YX332gAQW4fKIfBkqZ47KjaguYMJ8Ic6YwMayiee+Hf97JZu/uJQTcsqEvdAjBrN3FMdpY1a68B3k6lOLuGnglxtX50Px/2KRcL/2TTUlfqsHZbFmIV4H3gz4pYc20GjrvxyyFvHISVM/SejIxJfkq4GkAmeoU8nlzTrY1YWKm4te0tAKrPvNnbrpOvuBTSU/DzKS8v4kwQhLePI8jRQCi3cV2Cv0daLSYpFvLmeBCrGf03LmoEAUROyRKuQ== 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=D2r9VFSyp8hhVwc1axYxIFHgBGpmrZ9iStqoZ2SC+fk=; b=m2LRMuaB6cQ/1DBHXkXrOrGllKFJuPzCoaRwr7SDgsIgyPkUzWeBI9AWzXwnTLKmd1xYKxfJAFj8AFml0TG8GJ0sudhMmLcyvHNYFVYvfPPNSl6WkbZO2Y29XLSzDZg1DQQnMPbVQdj3Deqglrcm03HQ7AZ5FPouqD7OcRk5Mi6cO+k670je6o6MQMhH4s6/8BhQBgHsgTzettc6BE8cVQmevNjdkYymAfMvRXjWICaFE+dLizkrZ+M7AFap89dv6F+gX9bF3mQKnNNXvCqZXLcFCC5NJ18coj2ywVkyhvhkSa8k7fQIur/rsWumwBZWlFiDMqloKSqFX4ofSVa7sg== 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=D2r9VFSyp8hhVwc1axYxIFHgBGpmrZ9iStqoZ2SC+fk=; b=NAyKRSIrDNlPO9ANRPcyAudc4L/WZ9G5Pip9GrwG99P+Ivy37n5YxFe7sbSv8h/CiuPnSdC72MIVW/umTiBA4Qr9/RyLhhMAeRfSlK7DGc9tCVY+zpublWnkVbU/EFZOHKHIAVC0DiFURAdZkeoWmTaBk/JfpYIJmBpTZ4WpUOY= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by GV1PR83MB0574.EURPRD83.prod.outlook.com (2603:10a6:150:162::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.12; Thu, 11 Apr 2024 13:45:29 +0000 Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7147:b7f9:31fb:39f7]) by VI1PR83MB0431.EURPRD83.prod.outlook.com ([fe80::7147:b7f9:31fb:39f7%6]) with mapi id 15.20.7495.011; Thu, 11 Apr 2024 13:45:28 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "Richard Earnshaw (lists)" , Maxim Kuvyrkov , Radek Barton Subject: [PATCH v3 01/12] Introduce aarch64-w64-mingw32 target Thread-Topic: [PATCH v3 01/12] Introduce aarch64-w64-mingw32 target Thread-Index: AQHajBaDl/ljrdYjb0aEmoybiEz+YA== Date: Thu, 11 Apr 2024 13:45:28 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=ee10a91a-ecb0-4ef6-a7aa-22b9c54f3645;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-04-11T13:35:01Z;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_|GV1PR83MB0574:EE_ x-ms-office365-filtering-correlation-id: 957ed601-45a4-4821-b8bb-08dc5a2da60b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hycjIgQPQ+9ncSLP4cgj8VROHE1U6mgRqeWAcZkfBiELRqPL7FI3GIdSX0hjWfWj64+v4TAhv4ByreuvNVKG4gQaKnnAfiXVStEoDOt5Wcr6GCoy4YQ4oN5y1PyIX8W2YYCYFFVHipaGsOZU+e8DifxoOs6zCIvfnZ3X/KiK0QoaMaEVgPjrU0OldSYTyy9oc/yhx5R8UtZKj14X9gdyQ97THW6a14hvcM7PnDBt7QbI3XQBJtwUOenej1LywbxHm9hwLb8Sze1eV0XbD1VfEldnOW/3Z8eUsOD44fZp77wRxNVpW+Cc8L8wWC+Y5w8gaLg9vHYy7/Ts7jAKDwIgEJLD5TmPUiU45r0zSA+MRmblqnpEJl3WGXwsF+INt7O9qeuvX35oHPc6sJhOd/np/abBY1SXxBMPgz8F68bRzDaRfNkQxS7L4J2jsD3buATdwqL3NAcMYDgo1aN5X4NxJJz0ZRY336wkL0WZYN1DoM0UtlQfeX82Q3m4DuuisILLKKiUTJiY2O9jSEaN77z6ZUxQZqVlLCDPZ2UI0yCf5abY3mxajVAlPGalM/hyqZNx4Kl4SVhQWsqwG9kHMMo+qMT5lj77VFTiGUpy4IlAU5YtJKa90hX0RHIZI8ReQcvJ7dU82Qsu9VjqAflMWSe8cbzg6vcNe54WXniluprxMU+kW/cGhjPQ5cxfEcE7uQkNaBxLyPAThcsiCKCpRpQNu41GLnBWN9yDegJLRyQqa2E= 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)(376005)(366007)(1800799015)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?yv733U0nc6bDBldf7bDNhi9G83OMsPCuA7io44dgflEn/o8nMtfTt+ZTGd6a?= =?us-ascii?Q?u4nGLt0KuSwCAf89p+vLwQnvGYMlGMc2qJPJKyfTKtZ1WPERgpbJVVSkqooO?= =?us-ascii?Q?rShd8fBcyUIlBDNrwD4aj5142CkOnABr/edb8ObrWDVvEumwZBhpehHABrfP?= =?us-ascii?Q?5UELcGKIFCqrFaBuzO+BKmfqAGllAixVWgvbuIeUgdM5oZD1aNFPTcmBaRI9?= =?us-ascii?Q?PMBplul3R6eaD1hIU2n0gbcF8J48Jt27Esmc0LQ9gLS5SRnDdzkGwugJnvPT?= =?us-ascii?Q?xMvvy+hK+n8XpPkag9h5YKIF9zM1Fx9U4jRpP47r2VjezJTLzmCQa0v7q65j?= =?us-ascii?Q?biCJ99Dgbw+y+DgkvXIH6Sp/d0dY64DRGpmwWORuuXbBfo/1gWBLIIlSBdMW?= =?us-ascii?Q?x15ZJnagUCCCfTdMFB62RyX4iaq5Li2UhHEF9u5esl8SL6F0D9Ia7f6+LSy0?= =?us-ascii?Q?IhV0qSQ7rrEZRZXJSn2iIZBC2niuJbjktzimwntU+wABF6GCutGX2KKP3MPO?= =?us-ascii?Q?BdkDPft45ybVP1CzC4hjYeZtmDl89vIccbH7vUuVYDi4iCDG/K0f13DPpqk4?= =?us-ascii?Q?6Xf0+WVqrOPgTqxpyxo8hLAcnns742FUWnZ+GfPPBpA29UDZ586y8H1G7Dgt?= =?us-ascii?Q?rpYU/DiuHltqjF+Sq01V1MQsZ5dM792d7/fb3nct7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83vP4yMfo0iig67Hh?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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: 957ed601-45a4-4821-b8bb-08dc5a2da60b X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2024 13:45:28.5213 (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: tTQB0P1Wd/Lv/Hrl6DiEJ+REoug9V7d25Oi99sw0us+QKTNeaAVi2ZnI8iEy1xVpQ7YTAwq+oUbARl23WgK+WQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR83MB0574 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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Zac Walker Date: Fri, 1 Mar 2024 01:40:53 +0100 Subject: [PATCH v3 01/12] Introduce aarch64-w64-mingw32 target Add the initial aarch64-w64-mingw32 target for gcc. This is the first commit in a sequence of patch series to add new aarch64-w64-mingw32 target. Coauthors: Zac Walker , Mark Harmstone and Ron Riddle Refactored, prepared, and validated by Radek Barton and Evgeny Karpov fixincludes/ChangeLog: * mkfixinc.sh: Extend for *-mingw32* targets. gcc/ChangeLog: * config.gcc: Add aarch64-w64-mingw32 target. --- fixincludes/mkfixinc.sh | 3 +-- gcc/config.gcc | 13 +++++++++++++ 2 files changed, 14 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=3Dfixinc.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 5df3c52f8e9..6f97f24af10 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1271,6 +1271,19 @@ aarch64*-*-gnu*) tmake_file=3D"${tmake_file} aarch64/t-aarch64" tm_defines=3D"${tm_defines} TARGET_DEFAULT_ASYNC_UNWIND_TABLES=3D= 1" ;; +aarch64-*-mingw*) + tmake_file=3D"${tmake_file} aarch64/t-aarch64" + case ${enable_threads} in + "" | yes | win32) + thread_file=3D'win32' + ;; + posix) + thread_file=3D'posix' + ;; + esac + default_use_cxa_atexit=3Dyes + user_headers_inc_next_post=3D"${user_headers_inc_next_post} float.h" + ;; aarch64*-wrs-vxworks*) tm_file=3D"${tm_file} elfos.h aarch64/aarch64-elf.h" tm_file=3D"${tm_file} vx-common.h vxworks.h aarch64/aarch64-vxwork= s.h" --=20 2.25.1