From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2127.outbound.protection.outlook.com [40.107.249.127]) by sourceware.org (Postfix) with ESMTPS id 2486C3858D28 for ; Mon, 4 Mar 2024 19:25:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2486C3858D28 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 2486C3858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.249.127 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709580360; cv=pass; b=f2rpzzwhnLWcWyLE96BmIuYEWng6eYjVeaVX1XpJ3cN3yJ+9+ls9UgNSHGi+eV1woNPY9OcMvY+4XREY71NDmHW7KiPJEIknbjwVL15GJDSqwRV3Dwnhm6FqVszpSCPgbZVglpJrWSRCAQaE+119yphneZmyz48V4bgyCXBSCN0= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709580360; c=relaxed/simple; bh=A25lcy0B2im9c+npBeNz+yndzffnX0McKFDkEOH6yvo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CQNho0VO66NOtDsFVX8j5kxRntoRwP0FtCJetJPDlBqE3W2BLPATsA0dO8v5O24yJDBjQnM/bq6XlfKXrVYE6gfEPglCq4CjCgtdI0GCEYXzFYTPfL+KuzZ5hhf86fksiS9dHMTiR/kdLUIT8wHYraDYDhRo4ZEGIhpewb5VxoE= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MUwWulK+pyY7re2tgy+2qnCRmiSEkmPotGL/C/cCgwj81vSm/kDQ2Ni3L7btSDcO1oZufz7i+elaGPoVA53yU9Ld0MztZTPcglyNr5aE+8hqr/RjzKWBigV8NVL9WS/MBvqHTV4yIS4iBltP5mEmKaw9WOwXaal/iJ1uWQL+Pxo8CllIz3bKmscso4Sg4yiGTdg2p4/OWBgCw0Y0hKCdU2trp7Q62FCwQmdaWAfYb26Vd8E/aI3j0ti1VrAtuJAoomJ3wNTAAwDXboxnu20WnVssugOV33YbVjthTizan188O2PTwtxSERQNLJKzY/upb6s5cRNYvILbIiX8X1ep6A== 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=vzvkBTVWkeG9qlP/khab9NKGkDIrv0sFVLtrr3FYoL4=; b=LT5Cx9uRoeaYQClWV62P5AaNSEGvnHdUq4IRpkmyEF0wlIx3JzuCgTfEqcOXiu3PGNfGY6NLSi0nyTXif2Wv2qtc9S3tBxBsN3SFMExrNBTN8+gVcF1j+GXQpOqMFJBRpmyYrE00m8Db5soMl6RHV94QQWcneSBtp6hd94zYR9gGw/CwolPG4AHo3XqnVEDwUqJq2ezd5iT2A3u0PgDDdP10FdIC14Z6k0MF3fFx6VQcrZTOsdyZJlGjRFBd6fYQg1XOgqEabuu53wQ1puZ2yGIBYen8ZwUAHVH4bNqMSMTV3fkRDL78W9HzRX5+hapyCT8giKDegoMed2ugZz8kQg== 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=vzvkBTVWkeG9qlP/khab9NKGkDIrv0sFVLtrr3FYoL4=; b=FZ9c9T7dEFZ/y02G/WM48pDlHBHZ4AEMPwGBbMHay4AJScukLb8ZD8kgKjm1q/AWoUd3L2uisptvK1ashY2NOALv/NbgDUmaUpCPEqYi6Y2mE6z5F94dUdKCibfMD/9ZiCyZx4ILl85KpqWnN6aeBuwe3ymcn4IfLrhKkisY9Yo= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by GVXPR83MB0581.EURPRD83.prod.outlook.com (2603:10a6:150:15b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.4; Mon, 4 Mar 2024 19:25:55 +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.7386.002; Mon, 4 Mar 2024 19:25:55 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "Richard Earnshaw (lists)" , "Andrew Pinski (QUIC)" , Maxim Kuvyrkov , Radek Barton Subject: [PATCH v2 00/13] Add aarch64-w64-mingw32 target Thread-Topic: [PATCH v2 00/13] Add aarch64-w64-mingw32 target Thread-Index: AdpuVu2V9k72/kiQT/WLFgBSzdzhIgAEr3Yg Date: Mon, 4 Mar 2024 19:25:55 +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=804f8e78-f263-4809-bbd5-d515c5934d44;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-03-04T17:10:26Z;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_|GVXPR83MB0581:EE_ x-ms-office365-filtering-correlation-id: e5b89676-d0fa-4367-1d0e-08dc3c80e9a5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ReTdeqOQbewyqFZdEVbF+LdswOqUhoDuQxNdiDIJJ/2tgmrQccamVrb63A4ZHD1onzNDjJ4ooeaKpJyeEnmNFZVXIt/itRxisHbIdjfJopDhq1p7jOFVuhL0L4BFR7Tq32ohmr/MmDuuWZAaSKhhVYLh1GKcad8vMB+x9DuIIMDCrb/i7d7psCAWT7aF8z1zL5KB4dgFDuZICTt7taZrDuTwn/An2U6cDMH9ggft07uK7nrTpJPm82KMqZuoqobtiZdaDMT5zaSuZBbAl85L7X8o/O9wx4ch2toKZqPi6hXHpJHHgJ7yMswI97ikIgbwGsqXK3CCIpc7Tev05a0Nsp9uIp/4l2OdZopwKUTuxE6ybL4o9vgMv/HlYuI3sboxAV9mS5bZtirOOypfEcaz9z8aqZ6aU4d/U0wq4QrGVT5ZEcyI0/Hs4Jqy2w4Gmc+31QU2a1ZTReMp33zGw4PfMLN4dBgWolqXravgv6zPCPfD4CbZKfEK7EooFZxOzoXmSDqOW9a5IMhyR1FMzncKGRH/nCJ84FDRTzxpRDxCFWBTmvjoCmE9zzD8/kuUPdZsuWEAB/vLO6sAgb2SXq8PgeEtX4W5ua4WqvqJeWjRMfid/tVkQuQXEqtPZsf+ixuwIe9f+EQnye300M+TVxFGDyMjIJPm2qrUsPrpvJGl84CfZ/0lQx2er/YdMMfXQJkRNpZWOS2YRhMfR5QXfG+t5NmBCRN+y9RF2+q/j7O+Szk= 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)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eTCjb1Hh+t9/26/oUnWHyVGizQDyFd8DRysZPmx5SAyZrmlA9pZn9QxjeFf/?= =?us-ascii?Q?3ESwVtIgnVgoohKBY9NZE7ns30fI3eYVBft+CLGLm1V6LZuI50iKg/L96GaX?= =?us-ascii?Q?cN00T+8kMiU3NLbloiJmjNDVTCqqBlpZGgScdibnCvDLDBBB+tJUqW4Fcxny?= =?us-ascii?Q?4HklqfQDyYBVayChZ0d/VisTzZeTNaAts1V9Ld2bAMZQ6wWtVwWC23yhKwts?= =?us-ascii?Q?PVuL47ROV4sPRy49pokS/9G8W/Cll3K/glZjQb671iZMecjkB8W0Ut4aaed3?= =?us-ascii?Q?0aCjQAzoKSKy8po7YAWOPHBat3nb11xdeR/LWCZIucQYg0JLt+s++wi7yTP6?= =?us-ascii?Q?0nBb0oa+XdJRJme2G2Rzh2tH2G0Y54zd8Ey7+zXkiSv0N8sFE8i0OXJTrYnB?= =?us-ascii?Q?0pijn7fg6zg5gTVYxzDP3IA+OnjR8QEoZU14pold8MPhqlKf+Vj0jEZRhCXU?= =?us-ascii?Q?tVBzb24cVJU2o8zYeZjy4IIlMWl+TIZgIQy467OryEeol3ZBQ/BNI0KUOdjz?= =?us-ascii?Q?S274xaC2LOkVV1AoV8BwhEW/NYzBX4UAGanIaZVQo5fIHeTUqIkVZ8BEUAtD?= =?us-ascii?Q?63ZzFZLA3Ohlj19USzRJFk9xYvdbg0KXknIg6d8AcYfn5xIeMGDKA0aVNm9F?= =?us-ascii?Q?8BQJj/rMOzK+87t7pRFxI0P5zLe0bXuvWocQr5XktyyqDUkjri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EeY/CtmYJLbVG60OMDMaghgq0JRt?= 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: e5b89676-d0fa-4367-1d0e-08dc3c80e9a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 19:25:55.3103 (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: 45cOqMf0OSo5f2UXY0hVc8Qe7q7ayi9uMiM+Y9iGx8MWfYhIRJI3Ezm5YZaXadTOdqdyK28f7hveEoTAH68HMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR83MB0581 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Zac Walker (13): Introduce aarch64-w64-mingw32 target aarch64: The aarch64-w64-mingw32 target implements the MS ABI aarch64: Mark x18 register as a fixed register for MS ABI aarch64: Add aarch64-w64-mingw32 COFF Reuse MinGW from i386 for AArch64 Rename section and encoding functions from i386 which will be used in aarch64 Exclude i386 functionality from aarch64 build aarch64: Add Cygwin and MinGW environments for AArch64 aarch64: Add SEH to machine_function Rename "x86 Windows Options" to "Cygwin and MinGW Options" aarch64: Build and add objects for Cygwin and MinGW for AArch64 aarch64: Add aarch64-w64-mingw32 target to libatomic Add aarch64-w64-mingw32 target to libgcc fixincludes/mkfixinc.sh | 3 +- gcc/config.gcc | 47 +++-- gcc/config/aarch64/aarch64-abi-ms.h | 64 +++++++ gcc/config/aarch64/aarch64-coff.h | 91 +++++++++ gcc/config/aarch64/aarch64-opts.h | 7 + gcc/config/aarch64/aarch64-protos.h | 5 + gcc/config/aarch64/aarch64.h | 6 + gcc/config/aarch64/cygming.h | 175 ++++++++++++++++++ gcc/config/i386/cygming.h | 18 +- gcc/config/i386/cygming.opt.urls | 30 --- gcc/config/i386/i386-protos.h | 12 +- gcc/config/i386/mingw-w64.opt.urls | 2 +- gcc/config/lynx.opt.urls | 2 +- gcc/config/{i386 =3D> mingw}/cygming.opt | 0 gcc/config/mingw/cygming.opt.urls | 30 +++ gcc/config/{i386 =3D> mingw}/cygwin-d.cc | 0 gcc/config/{i386 =3D> mingw}/mingw-stdint.h | 9 +- gcc/config/{i386 =3D> mingw}/mingw.opt | 0 gcc/config/{i386 =3D> mingw}/mingw.opt.urls | 2 +- gcc/config/{i386 =3D> mingw}/mingw32.h | 6 +- gcc/config/{i386 =3D> mingw}/msformat-c.cc | 0 gcc/config/{i386 =3D> mingw}/t-cygming | 23 ++- gcc/config/{i386 =3D> mingw}/winnt-cxx.cc | 0 gcc/config/{i386 =3D> mingw}/winnt-d.cc | 0 gcc/config/{i386 =3D> mingw}/winnt-stubs.cc | 0 gcc/config/{i386 =3D> mingw}/winnt.cc | 30 +-- gcc/doc/invoke.texi | 12 +- gcc/varasm.cc | 2 +- libatomic/configure.tgt | 2 +- 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 33 files changed, 510 insertions(+), 93 deletions(-) create mode 100644 gcc/config/aarch64/aarch64-abi-ms.h create mode 100644 gcc/config/aarch64/aarch64-coff.h create mode 100644 gcc/config/aarch64/cygming.h delete mode 100644 gcc/config/i386/cygming.opt.urls rename gcc/config/{i386 =3D> mingw}/cygming.opt (100%) create mode 100644 gcc/config/mingw/cygming.opt.urls rename gcc/config/{i386 =3D> mingw}/cygwin-d.cc (100%) rename gcc/config/{i386 =3D> mingw}/mingw-stdint.h (86%) rename gcc/config/{i386 =3D> mingw}/mingw.opt (100%) rename gcc/config/{i386 =3D> mingw}/mingw.opt.urls (86%) rename gcc/config/{i386 =3D> mingw}/mingw32.h (98%) rename gcc/config/{i386 =3D> mingw}/msformat-c.cc (100%) rename gcc/config/{i386 =3D> mingw}/t-cygming (73%) rename gcc/config/{i386 =3D> mingw}/winnt-cxx.cc (100%) rename gcc/config/{i386 =3D> mingw}/winnt-d.cc (100%) rename gcc/config/{i386 =3D> mingw}/winnt-stubs.cc (100%) rename gcc/config/{i386 =3D> mingw}/winnt.cc (97%) 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%)