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: 1902378 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=microsoft.com header.i=@microsoft.com header.a=rsa-sha256 header.s=selector2 header.b=hTtGHyc5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tg4qd6lkxz23cl for ; Thu, 22 Feb 2024 05:41:33 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C8C0F3858C42 for ; Wed, 21 Feb 2024 18:41:31 +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+hL4rgdKwxvpwo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xHKSiYVunsG0jDaL0AT2su2/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+incoming=patchwork.ozlabs.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