From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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: =?us-ascii?Q?hllD5fPM5E0RmEAGWTS5YZVyxG5Cnvyow/ih5uZtmMhCcCnEOfMG1yDr7nVU?= =?us-ascii?Q?O2KTVJEt9hOti6mtz2EGhi6c358iJB4hlDzvCuB+1MdT9QHKzhp+JFoxEqHw?= =?us-ascii?Q?haLAFSiqSpan6PdbLw7T/74mbC9xHcsmf1OAuaISp/3PBjBLDFlGUU0soGuO?= =?us-ascii?Q?mKlOELa16jQzhmQKPeCzzMIVNZY7CwOY6aH/+tfFyicDeFY4EUlg1UsEazlB?= =?us-ascii?Q?eqxvqdLiHT+1OJF2ednDwq7HyfiY80EhAlEKRmvNtOOjyyyxeXVmPJyvAZZQ?= =?us-ascii?Q?KV9GV6n7jsau9JGvUIjCvPlm35vCOL/66G4NPKligBMeRkQi1SwI1Bqyuuyj?= =?us-ascii?Q?60wwjUmIPQ8GDtcAfvXhm+qqeyOJ+VC3g8HJF94kLpW7bg/I4vdZXFAk1AKK?= =?us-ascii?Q?yhzdF4JuLl+GRCMPjKq9rIjiTRM93PyKtuK4RLrMEOllG2Xr8T1B4I7S2JhL?= =?us-ascii?Q?mUD1FWgYSWrqmTzYmcAZP7MaknC7q+EYM4JxgwgbXAVyhTwAwlpLzB6FRCpf?= =?us-ascii?Q?jBohQw8KWHZH9Kh9VHb4ff2Dgwr3MMFNmyvSNJerRusDgsXMYV0942bC8kV7?= =?us-ascii?Q?cJ+ynat6jQ992qMdizqD9ddDgaQ/SkZ0kEJytcpFUtGlZSRTteY/1IfDCUG0?= =?us-ascii?Q?yldwmheqn6XwpW8qqdczeZtGXHdUJcMTBrk9W5JMApFPX2QB+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O2BcSIEc8qnh11p4QD1P2296fz?= 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: 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 List-Id: 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 =3D> mingw}/t-gthr-win32 | 0 libgcc/config/{i386 =3D> 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 =3D> mingw}/t-gthr-win32 (100%) rename libgcc/config/{i386 =3D> 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=3D"${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" tmake_file=3D"${tmake_file} t-dfprules" ;; +aarch64-*-mingw*) + case ${target_thread_file} in + win32) + tmake_thr_file=3D"mingw/t-gthr-win32" + ;; + posix) + tmake_thr_file=3D"mingw/t-mingw-pthread" + ;; + esac + tmake_file=3D"${tmake_file} ${cpu_type}/t-no-eh ${tmake_thr_file}" + tmake_file=3D"${tmake_file} t-dfprules" + tmake_file=3D"${tmake_file} ${cpu_type}/t-aarch64" + tmake_file=3D"${tmake_file} ${cpu_type}/t-lse" + tmake_file=3D"${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" + ;; alpha*-*-linux*) tmake_file=3D"${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-li= nux" extra_parts=3D"$extra_parts crtfastmath.o" @@ -883,10 +898,10 @@ i[34567]86-*-mingw*) fi case ${target_thread_file} in win32) - tmake_thr_file=3D"i386/t-gthr-win32" + tmake_thr_file=3D"mingw/t-gthr-win32" ;; posix) - tmake_thr_file=3D"i386/t-mingw-pthread" + tmake_thr_file=3D"mingw/t-mingw-pthread" ;; mcf) tmake_thr_file=3D"i386/t-mingw-mcfgthread" @@ -910,10 +925,10 @@ i[34567]86-*-mingw*) x86_64-*-mingw*) case ${target_thread_file} in win32) - tmake_thr_file=3D"i386/t-gthr-win32" + tmake_thr_file=3D"mingw/t-gthr-win32" ;; posix) - tmake_thr_file=3D"i386/t-mingw-pthread" + tmake_thr_file=3D"mingw/t-mingw-pthread" ;; mcf) tmake_thr_file=3D"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 =3D diff --git a/libgcc/config/i386/t-gthr-win32 b/libgcc/config/mingw/t-gthr-w= in32 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-min= gw-pthread similarity index 100% rename from libgcc/config/i386/t-mingw-pthread rename to libgcc/config/mingw/t-mingw-pthread --=20 2.25.1