From patchwork Thu Apr 11 14:03:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1922565 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=Q/Mg1ySI; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4VFhHw0Mb1z1yYB for ; Fri, 12 Apr 2024 00:03:40 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4E8C23858C39 for ; Thu, 11 Apr 2024 14:03:38 +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-am6eur05on2101.outbound.protection.outlook.com [40.107.22.101]) by sourceware.org (Postfix) with ESMTPS id 2D1B23858416 for ; Thu, 11 Apr 2024 14:03:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2D1B23858416 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 2D1B23858416 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.22.101 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1712844197; cv=pass; b=nkqIW+z/Yi8mOwmzuKrsadOr+gVM0tBQd6VREJ9/c17m9i4ySs1gcVenJdxIt0Dwc0sOQj9r9bzLQd6nxziY2/bH/4PQAbowBKxTtRDVedz2cbrsGm7GLbdJfu9Uthbk9hNLbrnrWF11bZsXT9ZKDpGVMW0K50vgKPKhfChRljM= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1712844197; c=relaxed/simple; bh=mJg7TrFEjVuJC4MmFVuVgybltXokJ72mug97nW78y8U=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=NtNKYZdvrh9zOuTPy3jggt8qRyv3KkAxecY+2rRjzN2J8ZXshrip68nPIfmZ8upqA38ewxzF6RdiByDFDYX4ByS7xcl34fCkdjw+Lhb+W/pPcdLx4bvFzY//+wL3vtfexDIsMNkgAzSIuLE4T1PV+OtVihQ32OyQDoAUwAQoUCM= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=djUwZssODhJ+RXtLbuQm/wnnDJmpPy1oVi+6TjPRv3mLkwadZenCgIh08vCfMpdH3oT4FQfX/ZPyuJnElC+xl85SSYZhXboP0x0fenvbHwyqZ+hiLKbQt/IfhO/39U4rfEqKK3zvBBbB7O/2F7q2ccmDre5xpmOomt6AELFsEEbC5R0kVhRd3Sc2ppki7o9pKHozQFFtRwc/43gt+YbKywc2r/CxUAp8U87Xd+bZyUoOsi2D+XEgrIJyAypy/gjd5JnAMfhMiMB+C3jdX2EgAplD0jarPNMVGtnYiw7iDzZD0bFPym84kE6dOll6JJ+9fUrJqUIYszH5gQFtZWApvw== 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=X6uEeHqg4mGLUNIpIlgzYOxr+jB+I7McPBRdcY5iMcw=; b=oSIgu9E81Dzz6Jgch/hsxjJvvbQKKOBA5qpNAiTTUs4ww9MZM4hWeAzX12hp0VkcNgsJ1k7LtZXASNUOvA0Yeb/QbTIwNKRSMgmC2L5/ONO5mwYDkiFBo0Bz9ApGh1ZPL5IVeQPFe1WRQZpPJ97ZDnf0hYWTrNUnmDJqNk16frNKSNvWRjL4EoEcw3seC/gbhErfE8tJ+y7vEOgoPyjFReOhBk5LAMxMcN0NZpVGIBjPhQRZfre3cNiO7H2pZn94E+nlbXJFKQd0WmQf1NTWSBotjki7yMF6J+yS1qMbwALSoAOl2NDusCyTvqawKxaRY6xQRJlSE6sCG8kXUDgiXw== 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=X6uEeHqg4mGLUNIpIlgzYOxr+jB+I7McPBRdcY5iMcw=; b=Q/Mg1ySIL/s6dbECx6EXHY/KrFgYYMYFp8Qty2wd9yhjJq/3keiI3VL3fIf3CKu94Grng4o5NYyQg1qi7hJKF+saXVgBuyw478k8DDgV74udO+ptQplLHukKMqKqv6aAReIqCzz5KnNSOyg3x4BiZZIVLX1tMSu8TBpeQtm5tGk= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by AM7PR83MB0418.EURPRD83.prod.outlook.com (2603:10a6:20b:1be::11) 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 14:03:04 +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 14:03:03 +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 12/12] Add aarch64-w64-mingw32 target to libgcc Thread-Topic: [PATCH v3 12/12] Add aarch64-w64-mingw32 target to libgcc Thread-Index: AQHajBj4Fx71ahS8wkmiV7fBVi2cVw== Date: Thu, 11 Apr 2024 14:03:03 +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_|AM7PR83MB0418:EE_ x-ms-office365-filtering-correlation-id: 481eaf78-e98c-4f27-6a3e-08dc5a301af3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: aSo+P4SUWqcEupmjJmd9RGViadlgBQqwrnjOoaUMLqfRiUwM78qbunEuVCBUilQrWg2EYBrckkK9LxJCrPb37nxuivk/i14PminVP1mvDhbTW5guYlcRwCxPlllTG6Enm1ubr9J4b/L28qAeghVvPId47CNIR0kzjL0+W431MqMJFjoYIfI8OAS21gHeCoftUt3KdyFbLMWKPvA4URzJqsbPLhag5tRf8I0gX11AUcP+Q7ofEYMhYMabObw8XAONlcmK/Nns+xy+G7FxfPwgkDbK07vUrCIXDlJFIoD9rlOk8imSidnNbcl02vS4QfUg6XVv+WeU3oHapH1MUrQrxwVDB0ARxMOEgTO8VGy1F0+8UeUQAlNKso9OywcRA/Is4LMXSq3rw0Nc+xR3rAGERLG8/iR2zlNJKF28gTPUJKMFHkUTe9mmdIFp3koL0OknAbxu+xUwB+PJ7pl5T57a+BrDwnZOBoITk9p/z02vH8xb0XFfJplQYsT1I8T7MVAt5U4ZOE2rKmSV1JvBCMfL8FksNake6u5waoprWIBXJOX7nFQdPVV5BgIctAiVNQ3y/ia7fvsXPGtjbR6WslHsfeOh2qn2FOEOLyQcw83jZ/tdAtnkQvO3nSbU9asoXFMeJBqzYmXncXv4nk32CeJoVGelv+sQD5ih20CnTx5cwe7aFxgON8JrIlpEQ+d680diZEORzJ5om+7MoysMnExyvgQ+PtXuFfdRzJZr3ouYFOs= 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: hllD5fPM5E0RmEAGWTS5YZVyxG5Cnvyow/ih5uZtmMhCcCnEOfMG1yDr7nVUO2KTVJEt9hOti6mtz2EGhi6c358iJB4hlDzvCuB+1MdT9QHKzhp+JFoxEqHwhaLAFSiqSpan6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P0Ul6hUTFYdRCysoLn0lGkpxDKziNkpQOtJpHevy5KzvDbzvcHedutLloWZwYYAuXaEpgf4XvWS2FH3kFDe8uBkL9Clh5iZ7hPyaBvCPfbrmePKCOh7RfPApLZCN1hLBfsJbmq3z9mwbOfLf1sIHjxckmDuBUwP6pQ11pMVHCXm3JO3PZCaUIZGweB78o4c5PFguvIr2HKNETTNhJKhL8AaB7faRXwkpwS2JFHtOcMaObdVC5O5cZIxq+90v8bnlfwITmbwiRI3fBngLS9xlHQJb1zbGP1ClEHjLsUBR+KYguEspUgDaKEfOu+5ZXbS2EdiAqwe2Lwu9fWPQiLHnlWWU6FT1MfA7wf6yPSh+moUUBfvtAeO2BcSIEc8qnh11p4QD1P2296fz 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: 481eaf78-e98c-4f27-6a3e-08dc5a301af3 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2024 14:03:03.6804 (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: 5RQxXnfzI7t4aoIlmigHFpZeqgsargWmhnbSrPvpMdsDCqdRaCkvXFv2xv/BnVwvVBfyIfBClPbM2j044XUWuQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR83MB0418 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_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 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: Zac Walker Date: Mon, 12 Feb 2024 15:22:47 +0100 Subject: [PATCH v3 12/12] 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: Move to... * config/mingw/t-gthr-win32: ...here. * config/i386/t-mingw-pthread: Move 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 e75a7af647f..0f853b7d02b 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -465,6 +465,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" @@ -883,10 +898,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" @@ -910,10 +925,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