From patchwork Mon Mar 4 17:30:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209650 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1570144dyc; Mon, 4 Mar 2024 09:31:24 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCWHHogc492e5pOOB7vXyJ3y55uDksniSQzqpfB0DqsB+4QNUwNiEIYdwmT5yblXWQWGo/r5+3+PLd52zB8WdEFJdSAfig== X-Google-Smtp-Source: AGHT+IF8KkadXzGz08FgaJFk3VI0kiaPNshViUqr/JFM/kyKDC2X6FLuhmLBXQuTQW8VZWQtRLqy X-Received: by 2002:a05:6102:34cc:b0:470:53d8:a0f4 with SMTP id a12-20020a05610234cc00b0047053d8a0f4mr7346833vst.28.1709573484009; Mon, 04 Mar 2024 09:31:24 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709573483; cv=pass; d=google.com; s=arc-20160816; b=ffxeH+c42Et1a3HOncMpS7gIs/n88mwgsaJNOWOdHjIRtlrklfjRId/KItOiETaSnJ f1gZvIMpyDiLbblCxEmEyY3HF7HqD6e8C/Wo2X/jwSAKEk0xhfJWeMRmXpnZxssYTNfu h3P7+3/g9RC2iawMYJZ3OXQUqiln910wR0nnnmlNHnyPr6Wks1bRbjZsRWWeguc+eeTd n5wnottfvxrVUYY2f1ZuYVaO2naDyq34WXpu5U27sIAr0xiR0Wt06F8cLZ51MJoIpuMZ AXH/02o9xTwKhllvYK7QN11T0GIeh3a96ABQ9Pva5V0bIbqvCVWq3j+YkhSjeUVekJHA Gk7g== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=LOdvWEFwbWoa5PFFtlnZtTUeH2IGUhdYhv5TaUQZFdU=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=IvyCVSdTL4ThwLIp2vIPbHKRM/vlRkoNmcJCzIw3ZqFR8hfK01QO9PzpO3JwlIw/W7 IbbClaMHPmQk9CzPyJFtGXCN27eS3x1LP42ItlOOAXKeoeRGkOHezVqj9+3L2hH606uZ oekqDpmXBjRMnqGY90ZN9CFVEsJ+1+6x5k+4Ps+WmMX2CrGYL32JKuJ6SPGapCC8nHwa IaFq5yBjtaeyRRixdgI5BiW0H7SkJVC7bvCp22sW2JIf+rScsD1fmKsZDYpCdGuDWgA/ dlWARHHj/+4ktP4s0oROgWUnXjx5Um5AMm0NxYWuvgtlRTh3BbnAbY2O7eWrhtWEMoVC pk1g==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=U7thS4kg; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c13-20020a0561023c8d00b0047261953c45si1545628vsv.627.2024.03.04.09.31.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:31:22 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=U7thS4kg; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 327833858421 for ; Mon, 4 Mar 2024 17:31:21 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2137.outbound.protection.outlook.com [40.107.247.137]) by sourceware.org (Postfix) with ESMTPS id A54773858D28 for ; Mon, 4 Mar 2024 17:30:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A54773858D28 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 A54773858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.247.137 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709573441; cv=pass; b=NnGRDGLt4Chzs95QoogtpNrL+UO/AuB5NAjxk+FNpfy2QepoavHKddLaEupJSvalxBqLFYU/WNpSRm2bpMnJmMEKrThMzy+FjV7vL4TXou0pL2POJkLm0xFbkWccepTgtzuXEUJ79gYgOiFKgq2NcNcAxRpC9vbeCBON9WwbWzA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709573441; c=relaxed/simple; bh=nJTiZkoxMYZea1Ev4xUVTVtXQzKXskJfMTZxgMkXih0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=eGxReuD8ML8C+VwzZ0Rn73Eu7J6ic00lrj7pXPlqqnY44n9oJYqM+sme7Z3BcoR7bMAOSgfsmsin88rVuIqUwOreFLvSs/UMUCyc8juXP5LTItBi2uoVq4FUUrR2cwdWzLqkg5D0I3bpyWj/0OlNmDE7LJAYcUfuTBypVnDrLUc= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Iu0K2VhBi89mkRKdVBu4ONiTtEvIIRDeyeLT2XHAsLKT1Oa9PhTJtJG7kQJpUVOBq+Csk2O2wYSzU8LWkP6s8nkj2/rKq4/HIClg7jVCw5LWVzXBkYz90+S5YfcK36krSGYD5dzqFlX/ZPQ2lHobmn5DmWaSG4hbHZzWaS6Sw1Bdzgef1UXYA36+Y52uN6SVU0nZp4LBnUVwGOH2aCglMG60blp87UczDRX3Hinn9gbuNsAFoWS0Eepy+pFXy1H0MuLTPjExCbdaDRFIDnXs1e79gGKrLF+t7fNoD29KjOem33YXu8RAjHD6MjcXY6YzVrloF1Lbk5UGOHvrILzaFQ== 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=LOdvWEFwbWoa5PFFtlnZtTUeH2IGUhdYhv5TaUQZFdU=; b=Enxe+a6UCXnJnfAFuuUEaZnGfu7ZjtQ5JUsho2MbqwAHyrEyzmLFZKOEMdd0jMgIkWzn4QdvCO4YuwEWlOi9lyMLLVXJSwtFN6oMz5fyJZYosw6t9LuQ/4Wn8Dd9SbppkMk1xUHyj+iyCHSQFZheQtXgx+h5HuACfRUrQVilycJHEjDRlM1yv6mmgqxK1Lp4EJ4RQ91z5nLcoJ6H1Beu6sJD5uORxaRV+/0cqFfuWxZ59Oa3GXMLS3fiZE2GAnqixHHPNZW6gENzK+NyTXFZe4G/ZeHGgzVaO1bdi705frNtIoee1tz2QaiqCfHKZzO4A1nQbqLDwvu/iJfy9YV0gg== 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=LOdvWEFwbWoa5PFFtlnZtTUeH2IGUhdYhv5TaUQZFdU=; b=U7thS4kg0OhOgymxamyIstQlWbhH+lVI5Oxu1XZBQdup54T+68ztL8r7E5jN5IHC4eGBtIXoFRqiThtXyRoYAzez8+iEmUeojPvrACVx0asnNh5zRiAcrZIH8sHqycHXGeCnedD7nDe7MqWkdhNF0YqleFXzA6A3GH2dyyQ6ITk= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by AM7PR83MB0417.EURPRD83.prod.outlook.com (2603:10a6:20b:1b5::10) 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 17:30:35 +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 17:30:34 +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 01/13] Introduce aarch64-w64-mingw32 target Thread-Topic: [PATCH v2 01/13] Introduce aarch64-w64-mingw32 target Thread-Index: AQHablmpjw53K2Vma0ejNjInYsshnA== Date: Mon, 4 Mar 2024 17:30:34 +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_|AM7PR83MB0417:EE_ x-ms-office365-filtering-correlation-id: 20c0425c-699e-405d-a647-08dc3c70cc51 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kyBR/RWpjX8qg3jOut02u3P9osGl59R7LvdiV2ZdhCPnUaUfmlZvVHNsyorWdEjviMpoKu5O/xMN0AebGkqt4wX8jMwiXvRHqfQUsmgDkYQ4AoZxJh2m8SeuwHaut30ol0FzzyN99beWVmBQQB6jc3tbbRDwwmZ6QkUxnVHIqiKn6JdsSGPxeq0yiJsZEStDGmmLtp+wpto7Ldv8GyHiUfmNGDu9yJyJ/e6LRmd0ROBpzu+aOHAJAfLAxi/jDSRFTyzBdpAC5j053ieKcvKnBoS+/JcZBmFUQtJA1/pv/4uhq7NA1ukOYn4THnGCvQWfZhezCe18hbXLQ8ZLzlvKFACVfIGamzBklekfLfsYBi4iNdYqvyrFVB82Dx/aMuG7PzzxsT79LJzDkJ1QvmFaMDKEzgyLY+Rt0Tz6mwlYXNLXL7g7ErnZQ8A3Anth+MhPPzZbUkH/w84+KNjUfQvw9BlRiZtnrvaEMKdSY0NHrMaq4alnhcuejO3Wfu2E9otDjCCKvTqYwR6d+jG0pOmen2AG+b8p4/SEIdFAU2fzDtoofpLk9/CGSAdQjAfpX9JorxKlUTTT0H4Q0Cmt7kF5QMlIyRJeEqqLGDAYpd/vIjvSYkxuAhraDQAZ2aOqisaID1tlSLwTSLkZTbB6ig1QPSovWafG+Pwtq1ru26abT59Qni1ybqL/NLaXAJshbLvKHiRScMEFnEmvup++B5Ta/ZtYNPtlIl2hgT2vnOjxPz0= 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: rd6ZrMZNLLQ9Nk5bQuH6Vmszxxg2lf288u01T18z/RSGWOL6VQGCuK7G4P8hCsrwN782uLLT/2z6fp5YGR6SLLsrHf/4Gbda4rGKjdggcaQJc3YWK/NXsf/DXe/WxoZCYElI9P4Zl/fnC363sikL35tJAg+QDZamRe7sMdsMhXRN3lS15LmyHJYBZRcPDWr/pMi6YEutr4/sDD+asFtT1phWJnuSiLmCUUF+oEKre+SEwZ4qQy7//UkjOg2254ollX3n7YxwFFRv07t6zYZR5jAinrGGrF1IL7oMe4DkxKZJrwZcYxkozziUym16Z9Aiw4dRV1afe/1m+4ct8xQiWVCOXgK5t8L2cnDuxUhsHyopJb0hWFN+LDck2uZqBxXdDMnuljfINBSaPjLdMVr507iORkYghiZZd9FMJ0WZnaBnVCp5c55fiWjGGgvqqMSlIi9FiaeJUsy5+S8EbWzDmDJdK6v7wfuEeEOYs3uNge1Ize2PRaDOAPcnlam/+eHz98ThyOL7oMCx+CVZl6kv3KYrvnxAupJTl/RMrsCYQ/D3JloPOn0Ig+Axzxagz+ThWbqgYLoh4pXAv5qDHp8BkVuk5gx91iQl3aKsbrt9OnhyRFH+sGRScr55mQdvj4G/zxJy14CBu6KmU6JvSF1ypBwJFARS5qIrBvQWYt30LA80df6YfmYoFMc1KSRZogYg09QsU2xP1506LQOQRpWJHaPyomwKfjd8GKfvYJ9iCQ+WYBBqUSeMXu5uwdhKD1t6fWI0yIE5DnwPpG2P1sjZD7Duw+7sJmeoHoIUuRargoRwchxqXhwt9wOPqhnTUxweFY/fTyGNeXfOo/FgesM+myUxu0j7TlyWs/nwBtiYIncnR4iCh1Ll7sY2yC5cTIjemkQgLsbx4l66CSbo80tCbMrklgrw/n+r5TpMIZ+wucKQDccHAWB4c1y8bPW3Xswsi/VQ3supJ80CMe6RdgNrRab69/4EOwiJuvWsrsUehBKCXRBMTDdBB3/e9fluwdpGGc7x54mIkNHCyzz94g6lakYeASoxMlzZi+QhT5iDjoZX2+14+JEhB/IvRaru3jeodRIJK0SK79qiTryTa400huwZ7BYUA7fsaXpWhkhKRO2y5vEX+JC69sZC6SnlpxwODlEE8JfHvaimRcbohfeXQgP7ENenwtQiXIhD/ik53e56EvaaWj1vAUO3GW32/q+aMgE5PWcQVt27K1FeiyZ4VQCejCESkzrBYhV8nk9iqXXgDrboP1hlG90qOSwPXW+zq55lu1rvFxSi0oZg5D10AWy6S5oD5DbQamDeEuh4mALdiB+knK7XAaMsOCEM5IsAftdt7DtH0v684DgFwWL/RlEz0nVh14rjPRxrq5/RHeSNIpRW1tmTnvAaw/jjlkfr/03p/bS8Lz4F9tiqgZ331ATBuSsAYbtmPF9cS5Gb4BIKcjwgyKyswQW5V6PCIsqej86tNyPb2NAFM1KjyFqU7z7u+9b3etn1NGFhMSsFS//Pi/R+OxVV0WxONXn9744G7odxbFBRWE7hvRqlGViWnQzcTdUkEMwliQ3sTz4WwXYpugr24hQ8rWRG/c5bTgfo 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: 20c0425c-699e-405d-a647-08dc3c70cc51 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:30:34.1083 (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: SULBdYVhgBVjuVkWueBfUT3dL2UZDd7D6iR2YgwKW9f4qAz8xsJKAwXQKCy4gunY4hEtAOD8DIR8dUJTzgUqmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR83MB0417 X-Spam-Status: No, score=-9.5 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792617724189158508 X-GMAIL-MSGID: 1792617724189158508 From 38efaf5ab1fa017622d10239fff2ca23d2d3fb82 Mon Sep 17 00:00:00 2001 From: Zac Walker Date: Fri, 1 Mar 2024 01:40:53 +0100 Subject: [PATCH v2 01/13] Introduce aarch64-w64-mingw32 target Add the initial aarch64-w64-mingw32 target for gcc. 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=fixinc.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 a1480b72c46..2756377e50b 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1264,6 +1264,19 @@ aarch64*-*-linux*) done TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` ;; +aarch64-*-mingw*) + tmake_file="${tmake_file} aarch64/t-aarch64" + case ${enable_threads} in + "" | yes | win32) + thread_file='win32' + ;; + posix) + thread_file='posix' + ;; + esac + default_use_cxa_atexit=yes + user_headers_inc_next_post="${user_headers_inc_next_post} float.h" + ;; aarch64*-wrs-vxworks*) tm_file="${tm_file} elfos.h aarch64/aarch64-elf.h" tm_file="${tm_file} vx-common.h vxworks.h aarch64/aarch64-vxworks.h" From patchwork Mon Mar 4 17:33:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1571913dyc; Mon, 4 Mar 2024 09:34:37 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCX8iVH1z2vHWhxSLnl8ZnefryeGS6zuVsqwNYTHPEeGMWKOKICNTuzvefiWXZzK3F1Sg1ZDLykeZ+sT69IAFSdxojLsHw== X-Google-Smtp-Source: AGHT+IHxV5vVvBhWuOOmezer0JNkCtMr2hN/2nBFsGYECtR7ctqhBcnXrN/pfGFHU3cHlDVOSws1 X-Received: by 2002:a1f:7382:0:b0:4d3:4aad:4a01 with SMTP id o124-20020a1f7382000000b004d34aad4a01mr5402638vkc.0.1709573677675; Mon, 04 Mar 2024 09:34:37 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709573677; cv=pass; d=google.com; s=arc-20160816; b=MGr0P4fQ7F//jTi2AI+7KCTF1xvnq7DFWMXqdAriOJlyfLNnw0FYjjreciT4YAA7Dz L34XGIScbwwJhWAJt2aaQjiONumbKlte+DrjJQokIFvKMFY/cS0YWEQsjl2dLF095tk6 GFcDZs58oYY42Zw4Jjj6p75nPfaAYxk5YF9F9gYJ26nYGG0lk2LZCctAPXLyFlVquBFd gyYUjYDlbbQG805An+6YG+oXAOvGv6p+Icut5fAotOOzrHPEONtzQ38ou6yZ7O4IcZYw xRi5W6FVNUlHO0jvQhm6Pw7FNiffgpQSY5VJ/x4y4HcMKSxIlwTwf23lv6IYTiTKHaEq DssA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=QtLlBQuXheuh2N42SoLQxiKkMf4+59io6lHJML94Qb0=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=eLNk0b/LHjw6ZtswoFK9Jw2x05c8EYt9KUtAq3jFOD2xGEGG36R/tQWp4/Gi8mOoke dUR3dkaEZkKi7FlkQ/bRgYNF4Ik/qT22YRulHHwWb8ak3CBX2WPZPG2pYsp6jkB+6Wwf xGxkfngnHP/Q5Yki4cAuc6rnHpfKyj3vrcJPA1R4GP5XGXUYc39jZu5tdtU8fDQUSDM3 a/3XTo95F1PiRl0XoyJAZuNqqxzvLgnoSEka6iIErLo+wjEmdPlXaN4eOIUAoaKGpCk+ ZzsujULo1BLi2gV5papTbAK6xvguFw5PosyXtKOQhCNuTgRmBPJj6qohWYX7wbz8+V3Z s44w==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=FGVr33ca; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id cg5-20020a0561300c0500b007da419ed941si1494494uab.25.2024.03.04.09.34.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:34:37 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=FGVr33ca; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 56D0F3858C32 for ; Mon, 4 Mar 2024 17:34:37 +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-am7eur03on2103.outbound.protection.outlook.com [40.107.105.103]) by sourceware.org (Postfix) with ESMTPS id 85D733858D28 for ; Mon, 4 Mar 2024 17:33:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85D733858D28 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 85D733858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.103 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709573639; cv=pass; b=S/ykVGaUimbl+7aHCDFAoy7AAAaP8+q/rzWVwovvGOUKwazlx7UT5tVR5HspEBTFDmn4k3i5dnTVorcjrJepn7h1FnJ7Hsgzgsovj2GLzqOWvkgxpTdv/VlpF7p5wPGphIinqS8nfhHLQj8ode1YcaNSigsN8ZBORnHluPcxsSU= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709573639; c=relaxed/simple; bh=72P+wo1VALiL+3aZVtePHdZQ0GugWMkOF+ebBxiFig4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=F2HhTxtGd/1yAOkPpM4I+wZ0SewXAKCZfLcsXrlQhWYYidCe5LC2q8IaTr0a0qWNlkHj6FpXZVo6aGOi9kmK/YMxQBs3Oi0XZmTz6BDQh8ldU/JSu3eQJV8Qf0G6P40Nk4V5wULSX4bom4Xv9ynQfePDVAVRSIJwgJjQ6yamdR0= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AziQ9wxPmt6Cm6wA+lU7kqX7B1nirKTyttB5HrFd6RDS2yo41VYosu62ycZFdNsJLWmkla7fYiK3zHgHlkJ4iaPIQs2eDde9VQiM4SSVfYwqEz6VVufnF9M1YP6NGcwcaeur597S8Ep+9IyEtsJbeSBdBOf0pH5ou4D7Frx4BFIKHEMeI+1wNLcP+rQBn/WM6w+LZNurKZI1euRPB+qmFyE5KLgkM/5Ma11A/EBeqkxbRb78tBM1aBC6p9b6MbhSnBUPA5zZZ8SleoRvAj8nUtCnZQhV2kVYHP+vbRCgWmLMdb+TN0LFwCKZAm1wthtrgGfnHMZjZYyuIFu2uVEkJQ== 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=QtLlBQuXheuh2N42SoLQxiKkMf4+59io6lHJML94Qb0=; b=fo9HkayDq3dgRGP87Tc3+AA8oRgU7A09+tcVA9FOhnv1d+ier7GBVV375J+TplBsqqmTotv6Sbbn4d4Z2QBEexKdWY+tr4O9aXi7Zl6rRrDmgpUKZ+MKPIDTKtsctPOvakNRZ79w3KHsVEqL59xbjwEwCQs6RQUcKlKVY8lRBu0hzggY0EQ6WiLirxaDcDsSmq1b+WBcxRbc4Tw6bWV4OaB8mh/wMBDbf0xZJi6JaobpWxAnvFEDZ7BD6o5Kwl5MWXIHrOf7QjdRXCao0wakxuK04FPCyS/aT9vIF/RfNramsC52ZZHwZzrZ0mufrJ6ONuXxYKQGgBxdzpx1jSBqxQ== 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=QtLlBQuXheuh2N42SoLQxiKkMf4+59io6lHJML94Qb0=; b=FGVr33caAK8aIkgbwC2QV+PSleK3LbUyPVx7w715kB5RcLN+xIj9Mz+ebCfr1r0UjqH8VcEHwHO4wHx34NQ+5OXXXGjJ/ZT145OFXN7rbadvjuBFjViCiXNrMMuM6E9Bayt5D1JINphQyjh3S/mglcPD+JNBfYcE1p3Bpv2rVBo= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by GVXPR83MB0607.EURPRD83.prod.outlook.com (2603:10a6:150:154::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.3; Mon, 4 Mar 2024 17:33:44 +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 17:33:44 +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 02/13] aarch64: The aarch64-w64-mingw32 target implements Thread-Topic: [PATCH v2 02/13] aarch64: The aarch64-w64-mingw32 target implements Thread-Index: AQHabloa6FbSDmI+9E+Bbzw3bQVJTw== Date: Mon, 4 Mar 2024 17:33:43 +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_|GVXPR83MB0607:EE_ x-ms-office365-filtering-correlation-id: 9e662c22-3134-414d-ccbf-08dc3c713d6d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eKn/pJVO3+a1/q6b69EXi8wKejhVkAec7km22zLWCJMYjcEa7umCEOgPdQHqvmQXjTrCWwAlPVveMW6zBTwe7cWzQLzOMbIERjOyVjL6OQI4WykB05NtQ/yTtCfEqiyTFF0gMK30tT40E2CukDRX2TFXtaYptnuDNmLyWCxVvvJy0ZrmXEwvkncGf63Gp9Bo9wePHF7qq308Xfxgactinjg5MuAki7wxXPmLOZAT9wL1csflYlLf+ezVKkPU5KjstIIsf2eluxbpfxD1eA0vFizwewRFSkn0dgSQS5deuDVBTiQzB3dRS9i1v8fcZBWbSj5ezd2Gx0KHNqN9kQJ+VCn8v9lHuGhC9DWXjV1TPBBzUNCfiX0dXduanA7zk0w2icobrA8bYhuYbadbGvKKL7J9HyezRI5HMOFtGxBnJ1PvTBH4HpcDOWcIrl4Fs7M+YjonTrDauE5fu7L3xzbdf8yB4CFkCg//xbQ3ZAy2hPu9FiVQ7x6pedNglhqGKS8PuV6RXBMufIRqitmWH2h5w0xxF8UDZaVYv75FwT+f+fH9/F/BoAIIJ/J68bYXN5AhvoR5FqJeIKe9zx600mykmmnr1tCp9iso2f7S8w9uFIzeoBWcna/VIsOWG4+/wTrgbx1dXujbPKY3v/jP1CLrvBylrZVEpPYYcgAkzUNbio3iWVvXLke4Mj3KeCS0yybehkBPQrMTAOiAdkh/+Pl+8FaQFX17CY2PcUlcI45e0cA= 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: cON2oMMCOlmwNgmqkGui/FEO+e1meCic79MK0267YJfB5yDU4P3HWCZ7u9NPp+6p+z/xHua+FG2es+34svQ7HXxeQPOuGjMIkLaW/tIYno3ed3FkbD3iBdevVSgUjnT7ZXdn0cr5gK4Te+Jc1XvCPytHsbBv++qhsBu9Smyo9y6qxoG2nHxTPL8/eQj9H68UGqXmLQ+gX8km9ij8SA6aw9MkxJHTNd/LsL3+C1ZWFQO1VZW64jxJFVgIYMYeti1rFDAqAaW3OdmG8iKlIJnlMgCHw90IBvkkLzfI5XRnfpAhmFS7sypYLzfQh3cL/U8CTcLA3N7GKjpuRPp3eK8WgKN2E9YpsLUFhNCy9BNnDZP4j5yjNP08BFuph27WRZTvLBA62zkcY36YTZ80ntiGkc7k2UWKT89shs/efn+wgpMgao4myztxqGPruesbTB0qRDPuVjRQWPwnLyTukg8YEiXky741+OO1wrsC21MEO3QZtbgSje32ysxbYbNtFNEochCf1nck9f0f91wvV+jqE86YgT32tNHHqVWauUBKclk+kFXV8qPrAx347VvVqKjcZ719okjp90INXiiJk5sHyAhFlqnLKFNrd00koe9aNnBQd8JM6naCAvmWrzYtY5SoClBrpUmak2x+L2ovWEY2qKNTDPFhlpql6j6eLYHzLWZgAdeEIGg60Y773NdT7wy+23O38sZdzFCrm6m73Ca42azpGXUXxlvS5Ov/FPhJdB6IU16k5aHim/iGnYpmVmifZBGMrpkieWvsdfDIeKn1rBkUjmJ8EGGcGTjFkgpgqxGvGfZGWtv1hXnvlWfX0WUrwVy3kAqq84LMxyi5oshS+K8FbCfyQZ39Xrd1YG1WwI1eVjBEbti4ZUIsy1aUU/nq/Ds8bQZtvHKMmSYP4A8ioZhS/oPF90AX9n08+kaQK0UzLobujMNHeOMGJvI8kU/ai9VKWAx6MMfWz4ywEL7xSks8VpjVBYYh5jBMLQlwHYaiM3zTsVQlXzU18XRQYnEBC7pp8ricTRKNaQNUE7/AKxZ6FA3OEPWm1wcj0ynsYhC7it/jv1UKFIVPVRuK/Y8K8NylbpL1BetdyKwMMzRAL+YY3NGcGGwHDAlZpUUZ4RWdkUo1cjevXcq2C2HKAhsmVspul47u9CWtf08fUbpif1kBukBKPrTmYINtJRURRnkH4m+Orn4TmIoObMpO884ZclQlmH0RLivVwo0+UeDIlfkhX6JHcYI1XaDizSbJx0fzEk945wGNXPoFGq1R8YRSCWqNVmhbd2Sry8r5LQ7ElIMeFbkKYNpKQpSuBzbd/82HGd6HG1X/+4aTCYReGpHMT3czibdzzfGP/OpxAfmkYQqBmMA/zsPCEP3Zy1aecSNlVn3JfQtpu5jKYLAew4vaut7RmM7uN5FdZgDUr7FTFnnGhZLKh1gFvBIEL4Hd0aPxj/+ukRGG7ooqByKc0r295eqUTnNDftPuCtnAewTRi4ASdWAJfSj4GRFVdoPytUnuu5mPS7WqBR0nKPklwIpL+Tvftk5EOmfCypgvPqLWlAAh3aYD60CCRhVw9v0k46Rrgq8z9B6Y+r1iH7nx4N6F 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: 9e662c22-3134-414d-ccbf-08dc3c713d6d X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:33:43.9279 (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: DUc3KHrApuLwxMCzA02WohAtKbiwVs782d9/5lo66/vLD32ne0G3iooUklZrQBZ98XZqXLURYwwu52JiIC2KTg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR83MB0607 X-Spam-Status: No, score=-9.5 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792617928658054799 X-GMAIL-MSGID: 1792617928658054799 From: Zac Walker Date: Fri, 1 Mar 2024 01:45:13 +0100 Subject: [PATCH v2 02/13] aarch64: The aarch64-w64-mingw32 target implements the MS ABI Two ABIs for aarch64 have been defined for different platforms. gcc/ChangeLog: * config/aarch64/aarch64-opts.h (enum aarch64_calling_abi): Define two ABIs. --- gcc/config/aarch64/aarch64-opts.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/config/aarch64/aarch64-opts.h b/gcc/config/aarch64/aarch64-opts.h index a05c0d3ded1..52c9e4596d6 100644 --- a/gcc/config/aarch64/aarch64-opts.h +++ b/gcc/config/aarch64/aarch64-opts.h @@ -131,4 +131,11 @@ enum aarch64_early_ra_scope { AARCH64_EARLY_RA_NONE }; +/* Available call ABIs. */ +enum aarch64_calling_abi +{ + AARCH64_CALLING_ABI_EABI, + AARCH64_CALLING_ABI_MS +}; + #endif From patchwork Mon Mar 4 17:36:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209652 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1573536dyc; Mon, 4 Mar 2024 09:37:42 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCU6N5YVJPfIfe+5GjuazbRGa8yvZibnI7Xr9cWnvVq9m/Swkbc4XWlzbaVW8I47fUUhojw2i03Ph2/WV27AMiVuF2+Edw== X-Google-Smtp-Source: AGHT+IHYPlKXGLDjZkPwQsdFdDi8sB78hXXbA23JiPOUNYCQ7i46rUNGizxxruhX29+LLm3Isfs1 X-Received: by 2002:a05:620a:2909:b0:788:31b0:3b35 with SMTP id m9-20020a05620a290900b0078831b03b35mr881551qkp.18.1709573861924; Mon, 04 Mar 2024 09:37:41 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709573861; cv=pass; d=google.com; s=arc-20160816; b=wxlRyapqXyrClaRHQXKJYBDj2KMWgMBVZjYWEhID9NNq2UV185Q6U2LxPMUDynizfP qcRixkJ1QnALv6+iYrPXITa0u6mN5HwHdvbFwZXsatJhDNktOL4E0aObYNQMF4oT90zY rDXOmKqFlzWl7c8U72p889/UN+RMADdoK8wSxo72AGCpmsk7C8CefkmxHQc3EwlnqPvh auXvXL4QyM12EIUbbfYpKGu7QqA4UaJuVwwTAvYGX0vzz4PhfqFgeQPvrMeYQciReVs3 St2sMtANqKJ/sNB7BvV97KWfAOa0qmeMmLvbrn2/HZv2PWarmYug9SG7ye/2quN4Xz2m wLWw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=aKBefbW3izw8bAl6oul6mbNwxfTXjuZECeB153idPcw=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=k8oqANfevxTMPfvMg0jKx6LwMng5F7zldbXwuAhOiTGnHvpTvBckiNeABIfP57RIoH QaRj1xGMSDqppCTZxP04CWRlqJGs+C3VABz0xccoLUgZJ0CeYD0OdnL7o2ofDtOG9EUm rmgcEj705PkUeaW2m8NDy3Uh103kBwA1S/HokQb6SaszuPAK0CGV/Qf1eMPj7Lz1Tl/G ayg11OzTp3nZt57wdtkg8N9yyXw0VPYEGJAhgooZvY6zt2x4uX9l81a7kr2qPwKpG65X M0Kme1k0RNGqQCFQt8pW7C1KJA1bDAFyArbRsEhPVGkvHdBWrCJm2MNEoHj5Qb99N6hv 53tA==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=c4eZxUEY; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id pe5-20020a05620a850500b00787bb72557asi10040427qkn.194.2024.03.04.09.37.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:37:41 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=c4eZxUEY; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9C5613858C50 for ; Mon, 4 Mar 2024 17:37:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2122.outbound.protection.outlook.com [40.107.21.122]) by sourceware.org (Postfix) with ESMTPS id 16DE93858D28 for ; Mon, 4 Mar 2024 17:37:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 16DE93858D28 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 16DE93858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.21.122 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709573824; cv=pass; b=OzjlgRmAsxs6YfeIcrBGu4MMUli749mytMAvxOgT7yzfvUCWowyh82/6tNI09wbIJLfc1m94tM36mfsohbwUxGb5lu/UKF0X7vHbpb5trBeimQLTHaEq5BnPXjOTNvk8BR+osNfv+hafj2ZAVgAErCLKSuXgljGaKPMvrBEGp8s= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709573824; c=relaxed/simple; bh=SWoWQOyu41/pYok7gEwthdA/iUOqOZH7RHymAyPGDt8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=i/8VaNymx3BQScrbn3Xv4IXW4Fh9K4fSrX5fSgQiszRswgLUuiErP6yxYqllWxBnYS2pMmdrBeDO3zERN3dPyeL38EOzvGg09ZCuZI2LH2d0GW9Yu+VI87OYSovTWqQ3DPfxl73uVFz57m1GiGLXDP30YINbYt5XyY/vRY0HMjQ= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZvANlGBcfGKB83pfoBFeBIJgKOo2RwNLBK9nimrKYMVBoQxhoJYgSteauFwlq9htNFQqGfIb63gHNsiN6EEWe/pCDKdaoZQyEyjSGV9jQiV6eYj57oaNLTH9UtHojSr8o9BIKQ0wkFCBqK7UTcEaipW6pxaVgqOZfr790VSI6F6ma9YuQDb2go/OPzVu1TC4GWENg1zdzwdyhImrU1NaYlozzNxMme3iF7aAZ/3RKTMkG2efBqLVuSWTpflwFuPvOyU0aksaoj+mQFWzfFGIxHUCt0H+p2gRWWOBUOVk8cTAI4OoCauRGd379bCb7aqrqt1IGdwoUN3y8pvN68aXdw== 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=aKBefbW3izw8bAl6oul6mbNwxfTXjuZECeB153idPcw=; b=n19iXfiC10UF4/MfZQtQ66YbyIfBeEGms2SeEWtSPm23BcmxB8NMGMpXpAdyeAWf5Wsc+pf7Z4mYuKIR843MMuI/FaRNwncNbC6hngNkE8XENBTFnYKsQp3io2A0Pgbv1OT9aroCd/3N6JMXZL+ZS7vDP2xu7Y/jkfYyXmtYXhWCeKkFMRrbZ4RNXkCUvEPlM8acHOyCpyuZGWxEMAddFEhVD8fJ597qMrW2G/wkxOzBEcytwQJUdwjrHcjaq/NCOhY+M/bP/Ny/tgz1/aE0g6UAnPIx8iiIdraGSJd/1ae4XA8M2CcK4jGYbfEkT48BuBqrTwbIdadX5TDjJY5t5g== 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=aKBefbW3izw8bAl6oul6mbNwxfTXjuZECeB153idPcw=; b=c4eZxUEYzlPfF8LCeyvzm00hzfLrvm3JovY8PhwZWaivuIfUU1VyIsPX/L91zHqLdetxT/hwu4+nQpCr07+SNTw38yLtrllnV6yBWqVRuutIn/lwBMXfWVcP/8cnIR98PCkScga0uG+AcHoV3bnPQBzF3ejjlOWGOqIbCXZmkAM= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by GVXPR83MB0607.EURPRD83.prod.outlook.com (2603:10a6:150:154::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.3; Mon, 4 Mar 2024 17:36:58 +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 17:36:58 +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 03/13] aarch64: Mark x18 register as a fixed register for MS ABI Thread-Topic: [PATCH v2 03/13] aarch64: Mark x18 register as a fixed register for MS ABI Thread-Index: AQHablqOcTlrCnDWmkGJrIQEWv0miQ== Date: Mon, 4 Mar 2024 17:36:57 +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_|GVXPR83MB0607:EE_ x-ms-office365-filtering-correlation-id: b855eb9c-6141-4a61-68b5-08dc3c71b0e0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8uPR6rTa6Im+dHNZ/hnOWR6eGZmqFO9w/iSN1zpicBEN7Dt0LrDaYv1gRuQdRdxeTYrJorTOgpGIL3sef0M7SyyRIQLTZHgsl5o6yuq/R9wk3dct4X3aaUtnOIQ2g4gNLQrIk3uxUSJaDDTUej1U1ZA7xNEoE5TbXZd4AL8nmGCpGu6HQDJmFrK896cqiHl/kNDVsYwSD8o6J2EAf71yBL6QRs1tDNX7gcwqzAB8VwiZNSormJ55CtEZNGl0wcc5YYcmNfwpbZmlhH5uxjh80ldN99aNAGx+qXFlhbo1HFz36PE+FstmQAx60a+NM50NbD3mIci3n/PGV0slvEfAYqUOvSStyLFPzvInaMxH/TQ/Y76DR5bmJBqF0uckIy0D51zwKwv+sfleC6ooOpmXZSsdRucmB1B2Axkdhyp7i0usPCDvkcjV9ztLp5Wsvl2hKZrekIye7r6OJa/WhuxXcRF8jFVVFvmt2ox+41kKiksSW08vNIMG16F633f2PEKE+7TEoxhnbTsL6crMBLrimjhb6L4e9vs9/5LUiNnTtxoz60D/v1SwFHqZZ+6qLt+WuzBPg1eqN6Y+ELI0NqmRalTAM7mgsqjA4dNAvqMjKBCesgdWQ2dbxkTKP3JzWEw8xE2tyqqSyLvqdWxKfKlKV9LLuBPDTT7wq+Byv+dbpXk= 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: IYNfKl3jXgSO+VxcPnrbk8r5WcYxgUTtrFGKB48Qrsdqr4QSNbuG8XcdBeYCPh+IYX6AUGDdm0WU2McXL3+DZGeRZyOfmjWoldy0OdVjVdIWPe+8ohL6JpXUSWS98YobJRvSP+tjbm9Jvp+674PnGzkf4Ct2Km+jQNOpm8f9qclzbTwx+4rB2QXgyTasHcWfDB8RQqutBJ4XvyAozNXBJBA2Y31n5J8wQLlVpyqa7kAta7fbUCHYbkcVEQXw1Og7leASu/mIhtaB2xXZ8BvhZWkENv/eC6HA6FmiglarbnLcIlG1hXpR1nIWQdISEC/zDOI1lYtetsb6FvN4h7Pk3Pfm/W3j8wJ+T1RHFXe6RaGSahr5ocj9gRAptCKQDRErVuC7A5Rt5s2SPi5sgprgdOUgf+QTtzqVd2wRFwLRPLNHnxydNRtvQJaWKiCn7uUq/AIMSOyRDPSQ0eKbgDOGiinAr2BMGHS0yBPlQ700CSqRuVVFdgcdQC3+krZCF1POwDyUqnfjiz+i7ZZ2OlQvhznNmuuURQiGpgC4IUt5IDGzy/rXh/MNCj/jYLDBH1kiMYfrwGJ80C1VNRXbR6sMOG7VcOLi89kxJp4NWst6yjSa5oDFkGV1C3KgNkssN8WYRd9zIbb/AJvb0n/2kgdadXMruKQYcyAbcaDymyPp7D6snfPuI6Y6Uw+3iJQ5MMmh2bbmAjlu0XSyVajTtEI7IcZN8oQzwxIZOijVFsGKjVR4NB8M4ujR80GAAmg6tMVwzNzqF3rIdR5ep35u4mV5xXSN27o63yvyS2ql1NzTQREJNN3rXxeuV3DbFTWzJOquBzkyguK1gaPKbNDgr7p/lntbe3Ww1j2XexdVhHSyLtm8SgNlY9/9+zZXwNDxP8B53PbeWHBqIQHnEaA3GAR4CUK9mn6zWKvEdIdF/ytrzy4qGjwBEDRsZxBcWv/Vbe77cSRFZn0KlLzXm1MFmJftZ8ebHyPSdHMZSn4qc8+F9Jn+B8x75ZRN8fjjxI891Z3HAVmBQNlkVXGP67TFrO3nCXCTfmZ95EAK6Gin/AzR6wkjroHteO7Cq7t/J9LU7/c9bunVeDtXwA0/xe1KOLCRoumdioOOlFGmSVSj2ma7I0vxCJHxYGRWPw4eIPycBB3lKU11DkumVRfpq526EBSuk4SCrjwUzKro2TOy4Vlpvqci0M+VvolVNv2OWdiBg7WmDwMcIC7tuaevSU8WkYsN6hU2Z0lHYpZuxbsWk9oIQY4l1tNDGLHRXkeagR80moLADKjmxwTAaq1A7mj2XgyZTmVVPdF8seg9IleCL7XZrshLBJfm1obxljgkDtnx+VgT7woQGDfXhxZkKAHLNBKWUFasHfMTDOr8tF3h+6md9x+cSvLnasZO//lOEsyUXKRxm5Sb1MbFPFI2i+qp8YkGoLvU0/6a2kev/wxLc2lVitu7O1sXbmP/AXMNo7VQ7JMDML7eFRRp3D3pOWsGeqeuUP8THw2kKf9J4wSoqvRqWe1Ox/TilMZ/Vx49FMF+mIaeXsqzZUIOH8xNRAk+KIlZcoj8yT1IatFRF46u0KYYgraMaDUclvaAiUF1DoInUYmp 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: b855eb9c-6141-4a61-68b5-08dc3c71b0e0 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:36:57.6081 (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: wzsj7zxqvedCjTapkrMmsgo8TR36WTFyAHLTlSvH9oWbFvbJKLemD/Z/3ncr12N6Dzfqme84jleeQwjlgCjaVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR83MB0607 X-Spam-Status: No, score=-9.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, KAM_SHORT, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792618121901446318 X-GMAIL-MSGID: 1792618121901446318 From: Zac Walker Date: Fri, 1 Mar 2024 09:56:59 +0100 Subject: [PATCH v2 03/13] aarch64: Mark x18 register as a fixed register for MS ABI Define the MS ABI for aarch64-w64-mingw32. Adjust FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS and STATIC_CHAIN_REGNUM for AArch64 MS ABI. The X18 register is reserved on Windows for the TEB. gcc/ChangeLog: * config.gcc: Define TARGET_AARCH64_MS_ABI when AArch64 MS ABI is used. * config/aarch64/aarch64-abi-ms.h: New file. Adjust FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS and STATIC_CHAIN_REGNUM for AArch64 MS ABI. --- gcc/config.gcc | 1 + gcc/config/aarch64/aarch64-abi-ms.h | 64 +++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 gcc/config/aarch64/aarch64-abi-ms.h diff --git a/gcc/config.gcc b/gcc/config.gcc index 2756377e50b..b762393b64c 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1265,6 +1265,7 @@ aarch64*-*-linux*) TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` ;; aarch64-*-mingw*) + tm_file="${tm_file} aarch64/aarch64-abi-ms.h" tmake_file="${tmake_file} aarch64/t-aarch64" case ${enable_threads} in "" | yes | win32) diff --git a/gcc/config/aarch64/aarch64-abi-ms.h b/gcc/config/aarch64/aarch64-abi-ms.h new file mode 100644 index 00000000000..90b0dcc5edf --- /dev/null +++ b/gcc/config/aarch64/aarch64-abi-ms.h @@ -0,0 +1,64 @@ +/* Machine description for AArch64 MS ABI. + Copyright (C) 2024 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3, or (at your option) +any later version. + +GCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +. */ + +#ifndef GCC_AARCH64_ABI_MS_H +#define GCC_AARCH64_ABI_MS_H + +/* X18 reserved for the TEB on Windows. */ + +#undef FIXED_REGISTERS +#define FIXED_REGISTERS \ + { \ + 0, 0, 0, 0, 0, 0, 0, 0, /* R0 - R7. */ \ + 0, 0, 0, 0, 0, 0, 0, 0, /* R8 - R15. */ \ + 0, 0, 1, 0, 0, 0, 0, 0, /* R16 - R23. */ \ + 0, 0, 0, 0, 0, 1, 0, 1, /* R24 - R30, SP. */ \ + 0, 0, 0, 0, 0, 0, 0, 0, /* V0 - V7. */ \ + 0, 0, 0, 0, 0, 0, 0, 0, /* V8 - V15. */ \ + 0, 0, 0, 0, 0, 0, 0, 0, /* V16 - V23. */ \ + 0, 0, 0, 0, 0, 0, 0, 0, /* V24 - V31. */ \ + 1, 1, 1, 1, /* SFP, AP, CC, VG. */ \ + 0, 0, 0, 0, 0, 0, 0, 0, /* P0 - P7. */ \ + 0, 0, 0, 0, 0, 0, 0, 0, /* P8 - P15. */ \ + 1, 1, /* FFR and FFRT. */ \ + 1, 1, 1, 1, 1, 1, 1, 1 /* Fake registers. */ \ + } + +#undef CALL_REALLY_USED_REGISTERS +#define CALL_REALLY_USED_REGISTERS \ + { \ + 1, 1, 1, 1, 1, 1, 1, 1, /* R0 - R7. */ \ + 1, 1, 1, 1, 1, 1, 1, 1, /* R8 - R15. */ \ + 1, 1, 0, 0, 0, 0, 0, 0, /* R16 - R23. */ \ + 0, 0, 0, 0, 0, 1, 1, 1, /* R24 - R30, SP. */ \ + 1, 1, 1, 1, 1, 1, 1, 1, /* V0 - V7. */ \ + 0, 0, 0, 0, 0, 0, 0, 0, /* V8 - V15. */ \ + 1, 1, 1, 1, 1, 1, 1, 1, /* V16 - V23. */ \ + 1, 1, 1, 1, 1, 1, 1, 1, /* V24 - V31. */ \ + 1, 1, 1, 0, /* SFP, AP, CC, VG. */ \ + 1, 1, 1, 1, 1, 1, 1, 1, /* P0 - P7. */ \ + 1, 1, 1, 1, 1, 1, 1, 1, /* P8 - P15. */ \ + 1, 1, /* FFR and FFRT. */ \ + 0, 0, 0, 0, 0, 0, 0, 0 /* Fake registers. */ \ + } + +#undef STATIC_CHAIN_REGNUM +#define STATIC_CHAIN_REGNUM R17_REGNUM + +#endif /* GCC_AARCH64_ABI_MS_H. */ From patchwork Mon Mar 4 17:39:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209653 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1574749dyc; Mon, 4 Mar 2024 09:40:13 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCXHMunvp9hj2hrxzxNBZrJg1bmwyNzMVCuIe9qbICHj57yO5eeOHNNzT0FgV2MeO7ERMSyzpcydoVsFDvz2ZwpPzyj4xg== X-Google-Smtp-Source: AGHT+IFTAORvMrhBC8IzHjKKGdZPvHxqbrFbTp88QYUDTUCs5+GrU8kOZU5Z9omvlI1KO+w/5xKx X-Received: by 2002:a05:6808:13c7:b0:3c1:b3c8:fbfe with SMTP id d7-20020a05680813c700b003c1b3c8fbfemr10709875oiw.4.1709574013741; Mon, 04 Mar 2024 09:40:13 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709574013; cv=pass; d=google.com; s=arc-20160816; b=WGoA8wVihJ7h0jUggBfNC2jd5ozj6wa7ja3A8B02GcDKS0pALtCR9nhaTUMPUtITYa 7P1e+t8sUvdGi221v0OdjFlTTX84U3S4RI3ru1GQu1I4OL3c/U6E/VCIq3lkvdBRXX3X KFtfwlwdjCU8J1D/GHUoLAwLyo5DqeZGmO0HBs2rjw03xAwXIOitONSxFw3U+ukQ9Ld9 45wiA2H6TFLevagqu/QGhDsoK7axTo31LTJUk8oV9wbwelR9NjB51xaL3aN9J0F3UqRn tGfUOyMqMf4LFxLQES73KZ9FflGpqxgIOEH+oTGP8PUqnq2x5y2+MZqJ68ko6fhx69+V VAlA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=0pim9HY8gVVZi4XBxKVWk8wUhmGKa98xKVGQbfxYpE4=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=XAfTpL72vyvKbHU4aReRD2oidf1HbblC8QziGkeaoxBthiapC5NGTgsOg4kDeUhF83 4qJsOzPguFk9mWKAnfpOH0WBCpkJK8EvYHhXnBSDdz5kRL9R/X6Powhb72/dml6WekEC g8/Xa4oPZGy40YNkSCCqTPYeUfRG1aOlWPBOGHXFLnvL0GkNJZ0a3bcOXcc5QcPjxhIN QbL8zZe6YAjXK3simrv6Zb2Jl35F5o/Vubp0il4JlPgsYkdjuzBU8L3NK688cUgm0Hh0 IuA81Hi4tFSi8Tfc5VrGf4UslIuMSCz9ytp++9/38LMYAAHOTLaS4vAqmvd97vXSKomU XHnw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=RDnjF3e5; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id k15-20020a05622a03cf00b0042e76eba305si10638371qtx.520.2024.03.04.09.40.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:40:13 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=RDnjF3e5; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 687673858434 for ; Mon, 4 Mar 2024 17:40:13 +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-am7eur03on2124.outbound.protection.outlook.com [40.107.105.124]) by sourceware.org (Postfix) with ESMTPS id 2C10E3858409 for ; Mon, 4 Mar 2024 17:39:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2C10E3858409 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 2C10E3858409 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.124 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709573963; cv=pass; b=koaf90Vt4YKMe/3OvpDhl0BlPaZdM14oxJce5FT3yfyvGUkCPoyJj0JBO7dWLdvV89EZbJZ0Z9Jt96jkAzFW6v4Zd3jFJPWC2oGKwSM2sZ839e9gTaHJ2GXxL8g1JMixl8GI6QfVXi5dbacHF9vFVVyhfk5iOn4avm7QozJfhNo= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709573963; c=relaxed/simple; bh=b7xZpGSzInWrB4lmU+dcGSBisk2QNmo4s3hkoRT6wjQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=IMlIJOaRz+kMwJOmE3BkZGnvxcpTOWfT+9xUAkn+yuygWBXnhlxIEHfK3ABswd79AP3DpOegJQh42Ehp+bYB4D7T35a6Sb/86fxD4eh1pP3c/kpzbQF+/UsnVR8YG8citIW6V+pcNsym6XK/wWvlBhxC30QDfkZAqXHB5OXIbyY= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jKiudaL6i+Ij0P+BfwUGmz6OyRQpQyVY5iSXSCh4BrrObAcCO+5SiZ78yHrp6Ija3O+5KqE1N85NLiRQj/rIsz25hH4xDEwFC/pHxkB0dfsrJ7IoGEhBAPRQYJGv0xCOrA+guMl5WG++nrybolS1MppAg5FfC2xJc2iovSBFeEdPyo41Sg8AKR4PoDOYHm9mUuTehZ260Ux6DdXT25OtLk03yKoRuXMjaEvD7sV4a8tcMscxFCw36yv5f5nsgFMB4VbPF7HjclLQhQYfTn9iCJT79Lzike38rb3+hlPPnMiQPie3ofYQL+LIaLLZrL7GjVz4xZb2QUxmw3TV7ntldg== 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=0pim9HY8gVVZi4XBxKVWk8wUhmGKa98xKVGQbfxYpE4=; b=NQPH6wOEcO9+H4ZHpjI/0/KYeq+KTlyI+EamxiQyQa8DosdZdgtIto7R0uR3wpUqTzcldxDY8XZMPRpvZj4IUTPWCVpTTyFfd+RaFlP6oGSrBcVIpwhzbVmeQCQqiUfm1XvairM8Ikfuuho84yDY9HDhCsLk1zj2qy7+JDrJYc/15cbPeEImYZm5jfDhL/tPsPyBxEETppg45Gcg+w/ne7fMMb5kfrrC2Cq12Xw2Otl+tjpCOcCPIIEErpH++0tNymwLpjmMIrUMsd/Z/4P3o7XiedPILQbDCpCWn8v2XLf3m1WzoBHBUA8H3MUpPz0tcZc53uvRokJdyH99kSdolg== 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=0pim9HY8gVVZi4XBxKVWk8wUhmGKa98xKVGQbfxYpE4=; b=RDnjF3e5jw+LUCcLsUozXU/4Qz4PDyhwcjfpBl0oT3WTNFW+nUN4jFIGpWIOvXCtRHFCauMWOUQvo4t9kpQ0KGzZC8JsFIIVg4SAbwOuZ2IbZTEg7VASjB9R9MLHbO5kRFPj15AFjG4tTOJD0JkhGJgl8Mg8W95SwD5Jd62smg8= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by GVXPR83MB0607.EURPRD83.prod.outlook.com (2603:10a6:150:154::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.3; Mon, 4 Mar 2024 17:39:09 +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 17:39:09 +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 04/13] aarch64: Add aarch64-w64-mingw32 COFF Thread-Topic: [PATCH v2 04/13] aarch64: Add aarch64-w64-mingw32 COFF Thread-Index: AQHablrcwmu+EOZNWE+UzNR+AZV++w== Date: Mon, 4 Mar 2024 17:39:08 +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_|GVXPR83MB0607:EE_ x-ms-office365-filtering-correlation-id: d74cc06e-b971-4777-a2dd-08dc3c71ff1f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EGaAsnRYlBtOA5m6n0p0imnYBUAKpB1XnHHKwHL+uw7aDjJ6hej36EWCQ17Bgfjz8xjxnJUnxMWa51UCmCtRwz6JpFC7bWRcbsvTJrIbTNnvaI1AjGAMXUq3OSGdDDxcmhoVjZXOvhZoSFH7xPKiq9d1bra/cCGUR32N3Mnoes+bAhWW5gQDbBZ2/j/ZovzfIbVW1vP5PfRRmL/poUUPEs3Ev1zd6CkR5pKzqFkZv5UVhhTwOWiy2NqKhzKHzosmK47RB+KFzUCAO0Yu/NdjMro8r22S81KZFG7B8FFiGcZLM563KxqgKdPLfvDZuwNOfv6pNJljF4xZMAw2+QOuvNk+3rJKyYjHy05UuYLoFEVxFFtkMU72NnNUmFoMwrsiDTY6IAss6PQWLtnGICl/uJZK5LKiKNOYOyZeiO6MOSWFOTZgAI1q6//G+Rj3PhoLt5ZZnBjUHD2zPOLc/M3W/KyMIHS96AhiJj2Vec+W2r7+B9mU47OTYRya9brcVgXRCnihS5vTvp8heeV6FD/pp3EdEhGMWDocFrxtM4QGCgVPT3GTgZiddjviGk5Bm9shQ59COcRGeaSSpl70ePZWgtFo6GJlIEMY7ET+8o7I1Srz+HhZ/I2VjbXAIche63ycUNoPuTqZMilQ9VdjcCx5Rrp2HdUSeoyA0wJExB8hKwM= 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: QBnxbu/eT6N8Li5A/txdEaw7O2L17LCwmRX+eYP7HvPfCL+yTNx7oQlnM5lEPCw1i6sDrBrIW3zXGAQMaxi9WwhRd8u2lGrLdWh9Of3YBbkaWwoZzAbtDoIowQwq+/C2o3uZvLf1ME/cvDsJXAjDFRjZnT78FxZ/+p55T3N3LMgbbDI1mtJ9NwGWJrHm37s4/zIMZn/dLegoFUVqLMl9oWsiQ53++3QnbZkLejXN0r6UbT8xd/xd7jlWvcGwL6WXn1qXygaZ4NNscoR+Z2MrlPAemQZrXYVkPZOuhNP56bBlDWTD1m/jI1GRdp0pweGpDTjt61PeEswFPrKd7RdDjz55jrqkp0JSsfHTyvN7RWafFslxjg5VMr5nX9ksqk669dt+vYLiH3864A2zbllPJsD1TJBMFt0PSoFwAlKDsT+ilQWEqtISEL/QwX/Wgf8zbGKg51PABoDbY8Y9L8I0SNRFuRLeq6fyolNNMbqis7QRTeFqZ2bxO1Pnr4hDXVPZvOooODt84UF1mkZA41W8L7crxiNhHY4Tu5Kl4UpW/ARoV3XlkmMCba4zsv7wmULcZgNSxv0RicoXuk7uqA9x4gPRIrLZaCqRs4a10CxZJ5U0Ab8AdfTeHAKV/R/jphmVL/h9rvgBAWT/A/ZWSQZG2ZTfkSi70Hr2mpGP76jDXr8nipTPFfrSTwNdOoOPliNjiRqxBx36vM1IxX/PMNe76XtSJewDxa0EUZE2/krejYsmGTmBNuzVOtjYW+ygzFmWRu5oF0z76MHYZHyn7HMRjogwXDWJpP/m4jOrjrTyRUL9zUAZKvBniztRrpXqKB/jlP6fc5NxjEVxStypPqo/6OI46ibBM5OZ3IYT1/eHcFN5h/PG51Ypi9104Pyu4qSR98BwlE+kYE9cqe60M0YTMbf4ZV/I8566uyVt3u7W/Ash4Dmg6c4HVLAjY5s9fg9xXN6Uec9xV4EL6+/rlSYcx7ADzYKZpROA+QfqaVaRWUr7SmMbYXQP8YsCwxWmSP4ElqiNM1EwjG8sK7bYiov+66sjS9G5bDVamedczgYcPOknId1qS3AyV+Z40xnPBoKch5FJ+ooFjaV5Vhqj49DDfZHHs5kKgEK0tMP8AsyOoqyWJMW1cEIE3MQHnbu/YTVyRuvPJSkNw0zfvxdkWELnmruxAdIY6ZCjmAn1aC1iK4RtfdMsbjKmZ7+2YQP7vPCIKRly4h7HRoZFR+6jJOiwPAnDOP/niYUl5TvHjhDLr5+klsFUmTOe/B1PgnaJ6GcckENkioucWzhNn0wBWH14Qe2L07NJFu2cWyUVezITzKknG+QHEBac4xsHYT8GeqWWSG5sgw4D/xlknyfxHMIyIX/iaMl887xepoPs9ul4d0EE6mUyIYwnAHcCSc7qvnqA1sG3TdDlr5H/MKNJuuJ5qMVbFYzgXOMUntpDYjqelq9CCoEAySwQI8AG+gxpr2tn0NAIuvwMdN0ovCKaBz4je6m5jWhTZu7o2fK0KSru/ZY0uBxnvR4EUWCK722xasFgLpcTilvyO8PJJWcDFiptVciV0cYxEcmAyqi302wlRXGzEOjR0vQhuH2jEaneogOK 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: d74cc06e-b971-4777-a2dd-08dc3c71ff1f X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:39:08.8419 (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: OxzD4aMCgQCTWgMHs4JFdpiyghHsfYJsNnrIp4vKzwWruYJnh0cBUvDcdpGAXIvuUx5fs6oRVXR0xKyK4wjRrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR83MB0607 X-Spam-Status: No, score=-9.7 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, KAM_SHORT, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792618281090496702 X-GMAIL-MSGID: 1792618281090496702 From: Zac Walker Date: Fri, 1 Mar 2024 01:55:47 +0100 Subject: [PATCH v2 04/13] aarch64: Add aarch64-w64-mingw32 COFF Define ASM specific for COFF format on AArch64. gcc/ChangeLog: * config.gcc: Add COFF format support definitions. * config/aarch64/aarch64-coff.h: New file. --- gcc/config.gcc | 1 + gcc/config/aarch64/aarch64-coff.h | 91 +++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 gcc/config/aarch64/aarch64-coff.h diff --git a/gcc/config.gcc b/gcc/config.gcc index b762393b64c..cb6661f44ef 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1266,6 +1266,7 @@ aarch64*-*-linux*) ;; aarch64-*-mingw*) tm_file="${tm_file} aarch64/aarch64-abi-ms.h" + tm_file="${tm_file} aarch64/aarch64-coff.h" tmake_file="${tmake_file} aarch64/t-aarch64" case ${enable_threads} in "" | yes | win32) diff --git a/gcc/config/aarch64/aarch64-coff.h b/gcc/config/aarch64/aarch64-coff.h new file mode 100644 index 00000000000..79c5a43b970 --- /dev/null +++ b/gcc/config/aarch64/aarch64-coff.h @@ -0,0 +1,91 @@ +/* Machine description for AArch64 architecture. + Copyright (C) 2024 Free Software Foundation, Inc. + + This file is part of GCC. + + GCC is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + GCC is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GCC; see the file COPYING3. If not see + . */ + +#ifndef GCC_AARCH64_COFF_H +#define GCC_AARCH64_COFF_H + +#include "aarch64.h" + +#ifndef LOCAL_LABEL_PREFIX +# define LOCAL_LABEL_PREFIX "" +#endif + +/* Using long long breaks -ansi and -std=c90, so these will need to be + made conditional for an LLP64 ABI. */ +#undef SIZE_TYPE +#define SIZE_TYPE "long long unsigned int" + +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE "long long int" + +#undef LONG_TYPE_SIZE +#define LONG_TYPE_SIZE 32 + +#ifndef ASM_GENERATE_INTERNAL_LABEL +# define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM) \ + sprintf (STRING, "*%s%s%u", LOCAL_LABEL_PREFIX, PREFIX, (unsigned int)(NUM)) +#endif + +#define ASM_OUTPUT_ALIGN(STREAM, POWER) \ + fprintf (STREAM, "\t.align\t%d\n", (int)POWER) + +/* Output a common block. */ +#ifndef ASM_OUTPUT_COMMON +# define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \ + { \ + fprintf (STREAM, "\t.comm\t"); \ + assemble_name (STREAM, NAME); \ + asm_fprintf (STREAM, ", %d, %d\n", \ + (int)(ROUNDED), (int)(SIZE)); \ + } +#endif + +/* Output a local common block. /bin/as can't do this, so hack a + `.space' into the bss segment. Note that this is *bad* practice, + which is guaranteed NOT to work since it doesn't define STATIC + COMMON space but merely STATIC BSS space. */ +#ifndef ASM_OUTPUT_ALIGNED_LOCAL +# define ASM_OUTPUT_ALIGNED_LOCAL(STREAM, NAME, SIZE, ALIGN) \ + { \ + switch_to_section (bss_section); \ + ASM_OUTPUT_ALIGN (STREAM, floor_log2 (ALIGN / BITS_PER_UNIT)); \ + ASM_OUTPUT_LABEL (STREAM, NAME); \ + fprintf (STREAM, "\t.space\t%d\n", (int)(SIZE)); \ + } +#endif + +#define ASM_OUTPUT_SKIP(STREAM, NBYTES) \ + fprintf (STREAM, "\t.space\t%d // skip\n", (int) (NBYTES)) + +#define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE) +#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL) + +#define TEXT_SECTION_ASM_OP "\t.text" +#define DATA_SECTION_ASM_OP "\t.data" +#define BSS_SECTION_ASM_OP "\t.bss" + +#define CTORS_SECTION_ASM_OP "\t.section\t.ctors, \"aw\"" +#define DTORS_SECTION_ASM_OP "\t.section\t.dtors, \"aw\"" + +#define GLOBAL_ASM_OP "\t.global\t" + +#undef SUPPORTS_INIT_PRIORITY +#define SUPPORTS_INIT_PRIORITY 0 + +#endif From patchwork Mon Mar 4 17:39:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209656 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1576608dyc; Mon, 4 Mar 2024 09:43:39 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCURMFh7nV4h7Bt6rT7kiWqDXN8fhxXI75f8UiUCPnpHKM2o/TWu4vx9JwXtuxplZ9RRDKSNedG3f27tDXx5L88YrD5UVA== X-Google-Smtp-Source: AGHT+IFSaHa9ATiec8hLck/eD0lHvAyuTwB22zangX4C1kJTyQakd36RjNnT0OLtppjM+s5VNLsQ X-Received: by 2002:a05:6358:6f1f:b0:17b:f042:5d5e with SMTP id r31-20020a0563586f1f00b0017bf0425d5emr11957191rwn.15.1709574218772; Mon, 04 Mar 2024 09:43:38 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709574218; cv=pass; d=google.com; s=arc-20160816; b=G9Pkej1GJxP487OAqiFtdcQxsk+OOu6cdP8OZ90jwVZOoDlzbnVjNhAPfQBiNZFu0l HPgh4cASHEK4ISdP6/XGB0wW3ji3hH0/5U4HveVFUk0AnEJWVHlFSGfKtnbfK3kUbLdU vHFbaxd1LsxaFCW6/pYzfg3mBVctxrQuhEu4PIVOv6MNL/auc3Du/dAfsbvfNqmzgzpX pXMzreduAorJ5kvUYMmdkRkDzQB/JjDmO+uc7W8o5wIhNx46N8tPJ4+ochzqf3PygYed iXTGBk/08AQzaNem84aGsvdvSh9p3vNUuX7+hcuDiX6yLoJKT7J7WiLoabi3RMQga27+ UFgg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=mUqm6AosJxiIvrSf1f9ig1w01sqRu+6R4iAqr0yLhZ8=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=AB+wjNT9xLl42J8PAEArxekwEm7qeVojc8b9UruxfzezKt0c6dFlfgGd5cx0gt9Ai0 lL1GnbA7bNI4QEglfb1B0ioL/1ZvGTyWDd7c0GordyJ44rk9ObaMFNRXYGQAXeAVVY8k BL/8Ec9sw9tJ7r05RbwhG0Tyujy2AggKSFqdlS02vYtMA62MAw7SSr893YBcC/VWb1SU 5IGdfGSQjlfTjAxrfiM4j2ZuUi/SPXDgHwiSZNWoOg/B9nPBngJriGp29AXiCmHsuJ1v xSQZ4AMS3ebLCZK/HTDu+b5ypJd2UbSsjgItX+HjEGERcjKEo6HRwsla6Kuc4Btfw6xi oXvQ==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=aaCa5uyo; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ld24-20020a056214419800b0068fea008b11si10080990qvb.306.2024.03.04.09.43.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:43:38 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=aaCa5uyo; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 711593858288 for ; Mon, 4 Mar 2024 17:43:38 +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-am7eur03on2125.outbound.protection.outlook.com [40.107.105.125]) by sourceware.org (Postfix) with ESMTPS id 50585385840B for ; Mon, 4 Mar 2024 17:40:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 50585385840B 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 50585385840B Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.125 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574005; cv=pass; b=YBl9y6cDo74qtprc21X7s5ui99ZMHOau/Pe1fHey56tZEBYIQWBLiIvlK3Lc4iI//Dm922qo/bTJXbFciIjfQYzDDIlW9kl9wzd+wuc+uUbsALmpM+P6KL7AP9XTStdKgT+TTT350zlB3/63GdC0R745G37WZ2al1I9k+78wvLo= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574005; c=relaxed/simple; bh=vzjifHmrN51OKzpxDAdvDvs2OvPD+LyODGZyF9eu6Yo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Jv5hco69afVdeiy1Q9nO8FVgVsOVyYlR+FldmJ/oxe2v6oe6T2hzKYkVI16qcy4Em5zJr3uMvkrbK1VrZu9voLn8RdnQW/TLa6TDQHWBBikpnIWNoxtc58eMP7j/+ffvT+ZKGITTL2z6CVuZ46Zx7hO6fsFAsL6+b/ofSv854Cg= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XC/WIELw9tUzLwy+0dhO1Clg3VtJxcd8eH+oH7Zsjll7gVATo0Tm4b+JhlPrncqCOLqSZ98jI0NL6fxOqdsr2XK2mlI9GbQBo0tQGbRiMWdTa5POnHNpGWTIQDCVPUhN1rNDp62YHFAwZxqSUbDMlro11c8NC5XrUQDXNzXserh9dKdj64kO+1olOZBOO6M51+NvmgWfAUuVPesJiSNAoJlt3V+ZUqHWApf7Pj0F1+YoXuLP3GA1AMOXBJKlFGsuOjRE2HtCu9biVu7oaSvMQI44eHa+KuI6vLGmR5v+O18FgEQoDT8dmA2SJjhMdqkLwVCTJZLLiJm5arZfpXEXxQ== 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=mUqm6AosJxiIvrSf1f9ig1w01sqRu+6R4iAqr0yLhZ8=; b=DeYWMptbYpPk9kc7OOjP6VBwvCWYYEmWWHEQ+2O82iAQs6XZXlFYtrfSwdEKPG97ED9rCr8ZrJXegd7gEWsAukJn08qZjD3rKqv9F6udnqFTLnXfipvc/3SDRSNvw2QBmsRCxLt6dMlVIqnTA7TwJe5uIf35QGPwKozGcCA6FFNRD7bjZRqsYnJEdQuJHuebbD1dgMgp05rerqDZkSOP4d5a6vuMZItYk1kzIKy0iKjU2gsuzkLvR8ztEs6ifGyLoAefwabGmIn1R4tq1Y3tuNt+W9YsccCEOElVlMRgBDAgTmjhksgiipgE+/tVLeIBsOVhZGx3mqRl9xVmIu+Dgw== 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=mUqm6AosJxiIvrSf1f9ig1w01sqRu+6R4iAqr0yLhZ8=; b=aaCa5uyoWJWu1Vs3ZgYs8s7RmaTlST1ELIwVOpu87pQLh6nifTmrC5+yhxOP69uPuuw/hT/QtvpoMojl+BZOKz5aXPy8rlOOcHkQcs6q+mtUEoKX5S5n81diVQ5/G3UXMo8vTTrnhY9w5gxp8d+kl0hsT9HMqsSNLBmcjtCtCbU= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by GVXPR83MB0607.EURPRD83.prod.outlook.com (2603:10a6:150:154::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.3; Mon, 4 Mar 2024 17:39:59 +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 17:39:59 +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 05/13] Reuse MinGW from i386 for AArch64 Thread-Topic: [PATCH v2 05/13] Reuse MinGW from i386 for AArch64 Thread-Index: AQHablr6O/EQRX5yikW/YgynyBwaZg== Date: Mon, 4 Mar 2024 17:39:59 +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_|GVXPR83MB0607:EE_ x-ms-office365-filtering-correlation-id: ef3fc5dd-af35-485b-415f-08dc3c721d29 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sNWJWaGBNHA/hCdPFKfKJQrCp5AECqU3JP6k0501JxmLIIieF7SlYyQjZshcc3JFJ/+nMlRtDyDwQUoSHbTz9j0XxxDMOjPBS5LXI0ejSKzz9b9yryMbBGqPkSWxsA2SbP0FYYpNrWc8kgSUHBl4nCEUstblRo68fcDdbB2v19sln9+YETewkTORuQ4gEXBPLZJayirFIO077fUdaEcIdEbkJnlaqUs267ccSqGc41Cpv3YI7u4UdvGNlqAZUwxFE9ZI+HK9sG88RVkNpS9Sfrl76YBF4h0mn34Rv6JwfCyNacxVjg+c+3sz3tmeB+dyj8gPuNPkZIXMuqtV0wZE174ueqnrGNtnkus8ujOmOrrOFlt9dGXg4YetH94h0LsqJBkwDbu4lN4aozaIzMBhDpF6frp7bsJMop4txFbk9Al8d7AnoBdJo+rxneJV8/Io/4RO70xcw695H+G2VYd1hwnmOi56KhYFMIT6rDYnsDYvJFSSwwQ1r4CcHGMQepIKaxHV1eUaDd41rb96B3rCFLK97RebQbofmPr23XU7Hmxgr0vS+AI8WugbzqNPaghSm4tWWKlcHoXzLJIwolziSEbemAV7Eu6nwIMg0PEIq8TK0ejHgkFN2M4naZkGouQr5JVeRqjEYZn1QrnNSXboEpiR2XdVpBctcfyw8wEYyHuHHP3el2zE5xmUP01dwzMWDMYb2z5tBSKxvPSNJLrTVKZ8A23vUWwIYrr/XW59w+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)(376005)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: q6bTutB+PfIqUxSR855ARjJAAp6XjJmI4fes+9nex88u/87gKJE9+Bp9/ItvAY9WgDbXIQmv34kLson01SCnMmS2RcGrai0ouUFEPfiBHjQ83WRoN+PzhhE0hWy0sZFjALDwsBLOTr5g4gfh1VjcAegazriMmaCtZnIp9sCZAqZQ/mw0ofZ+NoiTanZq16B5KoLSrbiqYjZPhXJRfEtKQhp83mJYyrhr+2l5MaX+i2jmm6tEBYrdo3pF/d0BL2HHjsbw4opcXUUWy6zqiS3DcGlzk6phuqgH6NbFE1vCc9bbouvPOHvD7nfK8rtYJPa12fGZUaNCg+enq+Bex6jS3Cs5d/Xz3ZbT1qlU43jyFs9xQGJMJJOe+kSF3uIHWo+6YIKkcBOPY3gYsxb5ttXakmZX2cs9x7qjjmYJKQ5/Kg7qQ5xIMZbI4NBRqlrGO8hmtE58CvbtXBsy5CusXbpOlm8uQcPZB3VmdmQ0t7yS9UfENFf3+fs6Taa4lE9ZA4vmpatuXs7KtSdKTrcohV2mWZWsZC46r7L/+LYrJ/a6HADkWP3v/aabEJlzhPnbvREszi4aIS/zJpLGrTKIRCJdHFBh2keZPe3nus6hsTtdzjcexKzxQE1B7pbITEIuUC9tmAUHsJDFUnOPh3uNKALZazNP2DTfTB86I6Y8+ef4ohi2SavZC0eU62hACvruC0tiV+HWEmZpDzDdJRIYuwfrfaNWpbOHiAA/DvhQWwMQ5qd5IxIjZVciHeyjHnnXIsPzw1wXRTwXCAygzPshvtjXrUlY/o5Nnev5KAvH/HdS9Xi1b12STgllUQ8yl1T9aDvDMgH++a4jBw7sMx77Ic1iqSPQtTl3HP73+V3Q/FKfhCsqAF6l8dgdV2G+K+BtJEJCCsGoaQm/SRL1siQD96sHt2N18bQHSHBLlHbI9kcL3/C7FcxY5yV0/m+8YVi8stob4pbSBeT7pGCbYQMrVKf3hzZrCYyGrlTJKCgqFzXY37qTqy+CId7GrTpjD/IU7SSdVrF8W/Zy3rDz+x55YZVcj42bcYqKo7gL+hGgTC3dRi3LHha+uahb9mXVSPLq03E+HxTno1DKdA4FAymnQPz79blR/RfunIo+zcCw41yQoo3hg0sQj2y/9VpgdH8LITk2X9DZNrH8+1qkhXCfAqbuJgLhr90LirDM3X6fu0emMI5Zo7WiXsuRYQlUANr6yPKpIynQB8/SvMmern3bFgGVVwJhF+SM3VTnpQOOXuLK7/zIQevhUdH/GXxfaNq0jrl/OPmxhZw6+fdyEMqhekdDzSpU7+oSU1uTJP2lmZK7yuK/HcU5OExJ9w+g6TSAFmfTUYgaXVqKrVdlbdGUcEu+roVdvoRDgAjp8FZz3HhiSfJcv9VHkUVr8967vNFv1D/ToG6ufY1MAibIF2kiifC+GQPGKqgKWILusbViR2P5mZaya14S49RkzQwUG9T/nLxyoO/r1Dj3KmIOTldJ4Wv4IuFCWRyuX/Y76z6ygKS8XgPguRes1MoQ5oCszl0yrYKA7vIasGgHD0EYvTYo74IRI4QY8Xa4nyXlsc49IIP+k3eSuG9+JomnPlCQ3jdBhJlL 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: ef3fc5dd-af35-485b-415f-08dc3c721d29 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:39:59.2649 (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: 8FFVc9Ss83SMdq4/FIgqueyqyGBQdE+YNltjiWj59MxD4tbxEeK6je2ztNXrSp/yPeQj6LKAUreFRI9nSpcwRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR83MB0607 X-Spam-Status: No, score=-9.5 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, KAM_NUMSUBJECT, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792618495591273897 X-GMAIL-MSGID: 1792618495591273897 From: Zac Walker Date: Fri, 1 Mar 2024 02:41:50 +0100 Subject: [PATCH v2 05/13] Reuse MinGW from i386 for AArch64 This patch creates a new config/mingw directory to share MinGW related definitions, and moves there the corresponding existing files from config/i386. gcc/ChangeLog: * config.gcc: Adjust targets after moving MinGW related files from i386 to mingw folder. * config/i386/cygming.opt: Move to... * config/mingw/cygming.opt: ...here. * config/i386/cygming.opt.urls: Move to... * config/mingw/cygming.opt.urls: ...here. * config/i386/cygwin-d.cc: Move to... * config/mingw/cygwin-d.cc: ...here. * config/i386/mingw-stdint.h: Move to... * config/mingw/mingw-stdint.h: ...here. * config/i386/mingw.opt: Move to... * config/mingw/mingw.opt: ...here. * config/i386/mingw.opt.urls: Move to... * config/mingw/mingw.opt.urls: ...here. * config/i386/mingw32.h: Move to... * config/mingw/mingw32.h: ...here. * config/i386/msformat-c.cc: Move to... * config/mingw/msformat-c.cc: ...here. * config/i386/t-cygming: Move to... * config/mingw/t-cygming: ...here and updated. * config/i386/winnt-cxx.cc: Move to... * config/mingw/winnt-cxx.cc: ...here. * config/i386/winnt-d.cc: Move to... * config/mingw/winnt-d.cc: ...here. * config/i386/winnt-stubs.cc: Move to... * config/mingw/winnt-stubs.cc: ...here. * config/i386/winnt.cc: Move to... * config/mingw/winnt.cc: ...here. --- gcc/config.gcc | 22 ++++++++++---------- gcc/config/{i386 => mingw}/cygming.opt | 0 gcc/config/{i386 => mingw}/cygming.opt.urls | 0 gcc/config/{i386 => mingw}/cygwin-d.cc | 0 gcc/config/{i386 => mingw}/mingw-stdint.h | 0 gcc/config/{i386 => mingw}/mingw.opt | 0 gcc/config/{i386 => mingw}/mingw.opt.urls | 0 gcc/config/{i386 => mingw}/mingw32.h | 0 gcc/config/{i386 => mingw}/msformat-c.cc | 0 gcc/config/{i386 => mingw}/t-cygming | 23 ++++++++++++--------- gcc/config/{i386 => mingw}/winnt-cxx.cc | 0 gcc/config/{i386 => mingw}/winnt-d.cc | 0 gcc/config/{i386 => mingw}/winnt-stubs.cc | 0 gcc/config/{i386 => mingw}/winnt.cc | 0 14 files changed, 24 insertions(+), 21 deletions(-) rename gcc/config/{i386 => mingw}/cygming.opt (100%) rename gcc/config/{i386 => mingw}/cygming.opt.urls (100%) rename gcc/config/{i386 => mingw}/cygwin-d.cc (100%) rename gcc/config/{i386 => mingw}/mingw-stdint.h (100%) rename gcc/config/{i386 => mingw}/mingw.opt (100%) rename gcc/config/{i386 => mingw}/mingw.opt.urls (100%) rename gcc/config/{i386 => mingw}/mingw32.h (100%) rename gcc/config/{i386 => mingw}/msformat-c.cc (100%) rename gcc/config/{i386 => mingw}/t-cygming (73%) rename gcc/config/{i386 => mingw}/winnt-cxx.cc (100%) rename gcc/config/{i386 => mingw}/winnt-d.cc (100%) rename gcc/config/{i386 => mingw}/winnt-stubs.cc (100%) rename gcc/config/{i386 => mingw}/winnt.cc (100%) diff --git a/gcc/config.gcc b/gcc/config.gcc index cb6661f44ef..26564ead079 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2161,9 +2161,9 @@ i[4567]86-wrs-vxworks*|x86_64-wrs-vxworks7*) i[34567]86-*-cygwin*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/cygming.h i386/cygwin.h i386/cygwin-stdint.h" xm_file=i386/xm-cygwin.h - tmake_file="${tmake_file} i386/t-cygming t-slibgcc" - target_gtfiles="$target_gtfiles \$(srcdir)/config/i386/winnt.cc" - extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt" + tmake_file="${tmake_file} mingw/t-cygming t-slibgcc" + target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc" + extra_options="${extra_options} mingw/cygming.opt i386/cygwin.opt" extra_objs="${extra_objs} winnt.o winnt-stubs.o" c_target_objs="${c_target_objs} msformat-c.o" cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" @@ -2179,9 +2179,9 @@ x86_64-*-cygwin*) need_64bit_isa=yes tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/cygming.h i386/cygwin.h i386/cygwin-w64.h i386/cygwin-stdint.h" xm_file=i386/xm-cygwin.h - tmake_file="${tmake_file} i386/t-cygming t-slibgcc" - target_gtfiles="$target_gtfiles \$(srcdir)/config/i386/winnt.cc" - extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt" + tmake_file="${tmake_file} mingw/t-cygming t-slibgcc" + target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc" + extra_options="${extra_options} mingw/cygming.opt i386/cygwin.opt" extra_objs="${extra_objs} winnt.o winnt-stubs.o" c_target_objs="${c_target_objs} msformat-c.o" cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" @@ -2217,7 +2217,7 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) if test x$enable_threads = xmcf ; then tm_file="${tm_file} i386/mingw-mcfgthread.h" fi - tm_file="${tm_file} i386/mingw32.h" + tm_file="${tm_file} mingw/mingw32.h" # This makes the logic if mingw's or the w64 feature set has to be used case ${target} in *-w64-*) @@ -2246,8 +2246,8 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) *) ;; esac - tm_file="${tm_file} i386/mingw-stdint.h" - tmake_file="${tmake_file} t-winnt i386/t-cygming t-slibgcc" + tm_file="${tm_file} mingw/mingw-stdint.h" + tmake_file="${tmake_file} t-winnt mingw/t-cygming t-slibgcc" case ${target} in x86_64-w64-*) tmake_file="${tmake_file} i386/t-mingw-w64" @@ -2257,8 +2257,8 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) ;; esac native_system_header_dir=/mingw/include - target_gtfiles="$target_gtfiles \$(srcdir)/config/i386/winnt.cc" - extra_options="${extra_options} i386/cygming.opt i386/mingw.opt" + target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc" + extra_options="${extra_options} mingw/cygming.opt mingw/mingw.opt" case ${target} in *-w64-*) extra_options="${extra_options} i386/mingw-w64.opt" diff --git a/gcc/config/i386/cygming.opt b/gcc/config/mingw/cygming.opt similarity index 100% rename from gcc/config/i386/cygming.opt rename to gcc/config/mingw/cygming.opt diff --git a/gcc/config/i386/cygming.opt.urls b/gcc/config/mingw/cygming.opt.urls similarity index 100% rename from gcc/config/i386/cygming.opt.urls rename to gcc/config/mingw/cygming.opt.urls diff --git a/gcc/config/i386/cygwin-d.cc b/gcc/config/mingw/cygwin-d.cc similarity index 100% rename from gcc/config/i386/cygwin-d.cc rename to gcc/config/mingw/cygwin-d.cc diff --git a/gcc/config/i386/mingw-stdint.h b/gcc/config/mingw/mingw-stdint.h similarity index 100% rename from gcc/config/i386/mingw-stdint.h rename to gcc/config/mingw/mingw-stdint.h diff --git a/gcc/config/i386/mingw.opt b/gcc/config/mingw/mingw.opt similarity index 100% rename from gcc/config/i386/mingw.opt rename to gcc/config/mingw/mingw.opt diff --git a/gcc/config/i386/mingw.opt.urls b/gcc/config/mingw/mingw.opt.urls similarity index 100% rename from gcc/config/i386/mingw.opt.urls rename to gcc/config/mingw/mingw.opt.urls diff --git a/gcc/config/i386/mingw32.h b/gcc/config/mingw/mingw32.h similarity index 100% rename from gcc/config/i386/mingw32.h rename to gcc/config/mingw/mingw32.h diff --git a/gcc/config/i386/msformat-c.cc b/gcc/config/mingw/msformat-c.cc similarity index 100% rename from gcc/config/i386/msformat-c.cc rename to gcc/config/mingw/msformat-c.cc diff --git a/gcc/config/i386/t-cygming b/gcc/config/mingw/t-cygming similarity index 73% rename from gcc/config/i386/t-cygming rename to gcc/config/mingw/t-cygming index af01f69acd1..f5de941c8e5 100644 --- a/gcc/config/i386/t-cygming +++ b/gcc/config/mingw/t-cygming @@ -20,37 +20,40 @@ # doing the build, it may not be installed yet. LIMITS_H_TEST = true -winnt.o: $(srcdir)/config/i386/winnt.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h \ +winnt.o: $(srcdir)/config/mingw/winnt.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \ $(TM_P_H) $(HASH_TABLE_H) $(GGC_H) $(LTO_STREAMER_H) $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(srcdir)/config/i386/winnt.cc + $(srcdir)/config/mingw/winnt.cc -winnt-cxx.o: $(srcdir)/config/i386/winnt-cxx.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h \ +winnt-cxx.o: $(srcdir)/config/mingw/winnt-cxx.cc $(CONFIG_H) $(SYSTEM_H) \ + coretypes.h \ $(TM_H) $(TREE_H) flags.h \ $(TM_P_H) $(HASHTAB_H) $(GGC_H) $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(srcdir)/config/i386/winnt-cxx.cc + $(srcdir)/config/mingw/winnt-cxx.cc -winnt-stubs.o: $(srcdir)/config/i386/winnt-stubs.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h \ +winnt-stubs.o: $(srcdir)/config/mingw/winnt-stubs.cc $(CONFIG_H) $(SYSTEM_H) \ + coretypes.h \ $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \ $(TM_P_H) $(HASHTAB_H) $(GGC_H) $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(srcdir)/config/i386/winnt-stubs.cc + $(srcdir)/config/mingw/winnt-stubs.cc -cygwin-d.o: $(srcdir)/config/i386/cygwin-d.cc +cygwin-d.o: $(srcdir)/config/mingw/cygwin-d.cc $(COMPILE) $< $(POSTCOMPILE) -winnt-d.o: $(srcdir)/config/i386/winnt-d.cc +winnt-d.o: $(srcdir)/config/mingw/winnt-d.cc $(COMPILE) $< $(POSTCOMPILE) -msformat-c.o: $(srcdir)/config/i386/msformat-c.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h \ +msformat-c.o: $(srcdir)/config/mingw/msformat-c.cc $(CONFIG_H) $(SYSTEM_H) \ + coretypes.h \ $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \ $(TM_P_H) $(HASHTAB_H) $(GGC_H) $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(srcdir)/config/i386/msformat-c.cc + $(srcdir)/config/mingw/msformat-c.cc STMP_FIXINC=stmp-fixinc diff --git a/gcc/config/i386/winnt-cxx.cc b/gcc/config/mingw/winnt-cxx.cc similarity index 100% rename from gcc/config/i386/winnt-cxx.cc rename to gcc/config/mingw/winnt-cxx.cc diff --git a/gcc/config/i386/winnt-d.cc b/gcc/config/mingw/winnt-d.cc similarity index 100% rename from gcc/config/i386/winnt-d.cc rename to gcc/config/mingw/winnt-d.cc diff --git a/gcc/config/i386/winnt-stubs.cc b/gcc/config/mingw/winnt-stubs.cc similarity index 100% rename from gcc/config/i386/winnt-stubs.cc rename to gcc/config/mingw/winnt-stubs.cc diff --git a/gcc/config/i386/winnt.cc b/gcc/config/mingw/winnt.cc similarity index 100% rename from gcc/config/i386/winnt.cc rename to gcc/config/mingw/winnt.cc From patchwork Mon Mar 4 17:41:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209654 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1576015dyc; Mon, 4 Mar 2024 09:42:33 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCXvTNGKe161BODgMQxehCnqzwYynDJG++qxCFXG+j2otbyHu0zXwMgbKOuEPtSZmAk6QvyPITFX6nHBKLxQdZLjUltkLw== X-Google-Smtp-Source: AGHT+IGGf3QkvCA9baWyvv8E0hne2GmTEc1Ohx/UZtstqnBQ0bTGO49ScjvHT+TKVpNSkZ2/p8aG X-Received: by 2002:a0c:ab11:0:b0:68f:3126:a395 with SMTP id h17-20020a0cab11000000b0068f3126a395mr9126483qvb.31.1709574153093; Mon, 04 Mar 2024 09:42:33 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709574153; cv=pass; d=google.com; s=arc-20160816; b=hGIZRLoMxkWFD06PIch+gRJdEF2/dODRFen6ij7ZwX5NBYfeSOKa0AOqX/tLqaBlho r9BOQHgtHFjE67f04DBk0hUli052Gfti3GGgU/YeqbNLO96G9xPPMWYMO7GCz9T0xY/6 uVf6s9pcmRYrWegNOgA99ym7xVKTyhUHiy1gkg/OZVv0xYfHZ6sy9pteBZbgpVSW0s/H OIcmfF1F+RezXYISAZD7agxfyeOC6Gg4aJwKSvJnULGzsq6CLw2ApB/hEUMvYqjw2cT6 q31SS+keQkYI7TXyc3rUNRYBzUODj43HTmq6jaYrMFQn3b1nJVi66yz0/Grvg8d5VaXx L3sQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=TmWsipn0ys3ihFcjM48bMUQa5vPJIxkAW+BljFZcQYw=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=NwH8FX23ej6fB6Da4ozMWHd7yE6qAvPOrHN0VYYW4incdSq/TQURE83JKOxqrQ8d6A 4zF44JY/44vOCbHk19VZcvEh2ARLehq510kflVpyvQtDjwUVG0HYwVWH9ixqPQ9PICVL ew9kXY44TYSuUwwakce870Q/FdC1pwCqA1u0tgXssHtdCiLKbLG6vfwxRHZkcoEAzYN2 1mdyi+Xr7we3Mb6dL65Jp21Hpc3OFmVABKukC77uA/VBqvVnRI87xCztl2idrWJKSLZQ d7cMn4FZqaRV6/vy/CETDAv1IjmK9PFxuGuv/O/UOwktWGtDKgHQKgBVtbr6tnqx4zSI p1sw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=cyXCCFar; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gv6-20020a056214262600b0068f9e559727si10363195qvb.602.2024.03.04.09.42.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:42:33 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=cyXCCFar; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C58D6385841E for ; Mon, 4 Mar 2024 17:42:32 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2097.outbound.protection.outlook.com [40.107.15.97]) by sourceware.org (Postfix) with ESMTPS id 41BA03858408 for ; Mon, 4 Mar 2024 17:41:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 41BA03858408 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 41BA03858408 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.97 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574115; cv=pass; b=wQ4R31p+cp39ITOqGA4wr53DFXKnxkJaveRoF+O16AJiWsuaYXi8I3ppEZbHKfbnbUi0HFzOI9MS/SMlfq0BOgCIs0NDGZuZtnLtpS1m5X1d2BIoyIFCR1H1l5IA49Nx05o7yNV+4WhMG1FBIKFKwFkhIr/tvIhfZvByScsgTdg= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574115; c=relaxed/simple; bh=NeILwZIYAzn4AboQzOPCD0HkoDyUyqKOvVDcGVMm9L4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rKlJ4yh7na5dTxrlYi6qRMvhhUjF6OA2xrPdJFftBkZ/Ia2A5aiP0WXJH1kBU6FOwzmuLN8SK2rElJXEXHnIXr8HaALxxx74aEGpBgk/b+IcCeY/CzFbXgzT1AdaQBYJqk0WtxiNK/MFhrI4ByDGj0n0uw7M9FvStX1c/I5312g= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S9gOoRrwIdbnUd0/JvXaZWKSxJweIqMZbABXAeHPPBXkaBzDVqviM1SA5W70MPLeD37i6MBVvif5aWX8maMh9SaBQpJYqJCe07hy9bsw135dZQJUolnYP30D6jlnDnibWMqoWQrIhbanNTSLGP5U4JbHFzi0iUNVp/5HHX1wKBH1S1yeyFD8tObQlZFBPwzhQkSxeKyXWl/Tf9TCLHYRYb+f0Ac6B13kVGAhArBOKe8bSZcgsb+hU2Qg25R8JBAHU/KQh5iA/1b8okzbuplfwJ9Ka4stAVBp09I8Qy+slzCXL8jS7U/IYHkyWWroK06Qmu2ta9BQ4+hXUHYN+O+elw== 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=TmWsipn0ys3ihFcjM48bMUQa5vPJIxkAW+BljFZcQYw=; b=KnlVBEzzsiT2wMQM8uphWuVzYPLIqxHZpixhlfC10W4Tu9NRaTH9f1H9NVs8ko0mZN52hqyrkZrozhwv/T0E1rwr+C98A1Zizlqi5E/C5y+puQ2dk3mLtouWJnfyLsSfeYR0i7v/P1xZmmm3jlraT9U5RvFda3NYhQlGDSB4gnOx6ZjduDF4SCivwxUK9DvMoW6ijeJPVnF/V8jX7P7AHFu8LKSa91asqFFb3LspgiDT+FAxJrH/h12VrHgYX1G/AiW7wVS2eGkcb26Ui2bRobs6LllgYevf/4FxTWdylYnuxskPCZWSAOnLdj3ZGeR8VJa18mVdx9pbW8vwJXZU7Q== 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=TmWsipn0ys3ihFcjM48bMUQa5vPJIxkAW+BljFZcQYw=; b=cyXCCFarBdPkoG7QrMknbiXXQZMdLsStW1h85MCVj6yNl8seVDN0lM7W4lvU+QiNwP2Gbn/DL2inKsBO1dwr4bKv4bkl0gtUWrX5K9Jikeyr2Xv5iExadbvg1wgaLqsTBNNzVTMk/5PQYBfRCmj3zlYNktzZZV3JPMcNFS+R4ko= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by AM7PR83MB0436.EURPRD83.prod.outlook.com (2603:10a6:20b:1bf::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.0; Mon, 4 Mar 2024 17:41:50 +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 17:41:50 +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 06/13] Rename section and encoding functions from i386 which will be used in aarch64 Thread-Topic: [PATCH v2 06/13] Rename section and encoding functions from i386 which will be used in aarch64 Thread-Index: AQHabls8IvfSnd4R+kSyWZuHpKHvBA== Date: Mon, 4 Mar 2024 17:41:49 +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_|AM7PR83MB0436:EE_ x-ms-office365-filtering-correlation-id: d9bc94bc-8419-4d2d-1a5c-08dc3c725eeb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qSJMn/3oXAL3Yk9oKACsy2+myaOmV33E6vs9Yj31fWA3Ti9odsHTYtG0YcckCvE4iU0ZeUG6ZUPtrjh7srEYNUYog8PxI5v9/RAlOozW3IXwgNFLSsETw176JJjbG96Neo0L609Ma0DthABZhfP59PAFJ0Ey7yhSzQiD9Rc7q14orXnJQOrnqEv65ofpMsRD0thbhmC0pELYxgMk4i7ngLB9pAbYmUYjhuzjTsFeBsD2OGu7ZiWnY26SwCLAf3TK6NYRjkvQJTfJnQ0OY2NeN2Czkai0Hl1oqznKLSrRCkRV5Ens4NkH4NYMitpx4ueyf6VMBE/n5Z/6C8iki9Ack6+VYpKuCTXXXxwCg+iSByg9LTe/FesQGss5KNPfe1OoZGtn7EQWhtLRYOeR1hksgq8jbQyqfi2sb+OTULE6JKQjI2vztbpOjkVRZydkXkJpEzdAnZNH3TZ05DxjawaFCOoosX1+wTdsvQXIutmjnnqV4i8uDbTS8Ef3bdIS3e8a3R6LwjfSUmnQESHEk56pqDe547QsPq0xSh8C25FUrssEhtZJKQojNeVvK7df0cbqBLQsL5V19ZDbJP4qK5xTHk5GPuyqA1tPDg+sQSpS/h1Rjj/HUlTUNVRJK5VUy2gRCTZAXkhwr73jHa7Q/NeTVf4fznjHoNjFjvRk1G9M43U68eQya06c/FUPdsneGSmDtfli19QAlmwbEbHJ+OdyYWg8plmIxjOei6HGyVviS30= 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: epSN/Q/I7UpDVhbh5I4r8KopgJZwFq5o5oE5kjItqjavJF/1onCr2IAv6rVnokceHG5opjYMNeq1ttywfy9JI4TPQiThtgi5MrVFVINmfGivzt7zuV02U/uhpopczVsmOrbnXNRqrbv1FZ/iSBCg/Dm08i2Dsly8+kjbjTtyrSy18jUTSzz26ZgLAmpYNzCfLdU6YylfosxTB90JQEI7ymzSOPu3UnnwR74+XIzkxflEsrkeJYyR6eIvFx9dj5ib6uH8x07A0JitTLlkvGalyUI7aB1rFoNnyzG5ujl1IT1lf3i4Zoza4QfZk0TRvce+2jHdjbCvLTE3HnP4nOHKBGRjuTYefYGcwJAInembmIhKuG8F6TVPW225LQFuWWm0XrDi3JBLD7j5O9qgxxTUkWUbke6CMMCe86MX0Q6wh4L6QVQeZot+qkxr5WNWmK0N0SJnxiVpYtdJl9DpAz1qxoK8r3hpvn/UvMRJrq0cw8/N8fKUi9v8CvAgNAQXM73rW3wXt1iM1k4ypuNGUia3f9FtL42kFvp7pM7+86l4aO3HZBrvrdzjVbwVJjGlD1zgJ5SPp7yx3ubT+CsKwqnAuehRm/J1L+DL/vlwO1NlALpRB2nZFs5TQaAm2raD83PQOXgl+WDMzFtzqg8DySNm4+uvXkmI0SMng0nEfLGLNyPMaWHEkacNBUz7S7MCeBXvAAQm50cCV9FVYFh+vvlzcqM9LaWvvpcrv2jf0BCDoA5khLUxnxRZWHhYu1o00Ud70ldfGQnQ959QfFw40SnZsrK9Iczc3r8kQN8wCUr4Z13MIMN182mMyuP8x+cRCT5fiToYOCzR5svVJ8ugJugHNNM/lE+fAcMJnZWvilbFr4KrR2dYbyvWhcnVoH0+mcIHPLampVTJWzl5qfbbA7qwzs4btKGebszMnC8fzBM/wd02lUEuwe2Ajc9beTDaspGG4aFcCeNpTrAGdI1rXXRWp4YuPoHQWjD5PzEsHsDFUZF1IglhD/Muzrg8WU7HiTtcNfwBkg6hF1T8OFkEx6kuDzsiUjdoANh/TxYl/4X28sKL1PDjJ1zw/v5qdxSEvlQdS4xhg86vathtxwARBFjhGksiNmDjhO/jmqZvRJwLrG6dxN67iVVO6AL8F+npxZm/CWDx4npkx49oUIRR0U9WaKSKJ4Mch+V3eqpzbDCWF3wGkjX+Mi+52ZKgSxNkjLxGkPBRPJtEUmNQVw07pVjDztiMYh5nb44Vuan8wDSj/hfKMWO4b7Zxy6PrQpvOlHeFjCLZDoxl9Q98fFxVaplbcxT2i3itvTu3zmNYJUmbjamzGEmF9EjjaAQY7zY4tg04R9CYj2IWp5ByD4VE8jdrWBfEN0ASM8cm1tiR5chc7zr006On9WRcUKae3DFJqM+sX7auJx3dhEJ9RREU6TnxagdCuMTTLeQwCDg4N0PT6UMBMgByQ03me93VvNdn0OBE+rMJOOQ3OCq9UxDPvMX8w6N/+QlQX7JvA79zgqEN2qTgRtuk5i5OLuPsUGIycIgs4kuPjUsJgcdMZIWYEI9mt5pXpxB2FRnXLCuoORqSgyB7Rlp0MzlA1VaPHBKW0xn1 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: d9bc94bc-8419-4d2d-1a5c-08dc3c725eeb X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:41:49.5671 (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: /RDTaUApLhE88Iy7A/B+ntv5li/1AWdNPy+pTUYvHDnUhfVL2fXwtGiJm5P5IvFymQfZ42tb4NO6fKzxHkj3/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR83MB0436 X-Spam-Status: No, score=-8.8 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, KAM_NUMSUBJECT, KAM_STOCKGEN, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792618426810526676 X-GMAIL-MSGID: 1792618426810526676 From: Zac Walker Date: Tue, 20 Feb 2024 17:22:31 +0100 Subject: [PATCH v2 06/13] Rename section and encoding functions from i386 which will be used in aarch64 gcc/ChangeLog: * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Rename functions in mingw folder which will be reused for aarch64. (TARGET_ASM_UNIQUE_SECTION): Likewise. (TARGET_ASM_NAMED_SECTION): Likewise. (TARGET_SECTION_TYPE_FLAGS): Likewise. (ASM_DECLARE_COLD_FUNCTION_NAME): Likewise. (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise. * config/i386/i386-protos.h (i386_pe_unique_section): Rename into ... (mingw_pe_unique_section): ... this. (i386_pe_declare_function_type): Rename into ... (mingw_pe_declare_function_type): ... this. (i386_pe_encode_section_info): Rename into ... (mingw_pe_encode_section_info): ... this. (i386_pe_maybe_record_exported_symbol): Rename into ... (mingw_pe_maybe_record_exported_symbol): ... this. (i386_pe_section_type_flags): Rename into ... (mingw_pe_section_type_flags): ... this. (i386_pe_asm_named_section): Rename into ... (mingw_pe_asm_named_section): ... this. * config/mingw/winnt.cc (i386_pe_encode_section_info): Rename into ... (mingw_pe_encode_section_info): ... this. (i386_pe_unique_section): Rename into ... (mingw_pe_unique_section): ... this. (i386_pe_section_type_flags): Rename into ... (mingw_pe_section_type_flags): ... this. (i386_pe_asm_named_section): Rename into ... (mingw_pe_asm_named_section): ... this. (i386_pe_asm_output_aligned_decl_common): Likewise. (i386_pe_declare_function_type): Rename into ... (mingw_pe_declare_function_type): ... this. (i386_pe_maybe_record_exported_symbol): Rename into ... (mingw_pe_maybe_record_exported_symbol): ... this. (i386_pe_start_function): Likewise. * varasm.cc (switch_to_comdat_section): Likewise. --- gcc/config/i386/cygming.h | 18 +++++++++--------- gcc/config/i386/i386-protos.h | 12 ++++++------ gcc/config/mingw/winnt.cc | 22 +++++++++++----------- gcc/varasm.cc | 2 +- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 1af5bc380a5..beedf7c398a 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -219,7 +219,7 @@ do { \ section and we need to set DECL_SECTION_NAME so we do that here. Note that we can be called twice on the same decl. */ -#define SUBTARGET_ENCODE_SECTION_INFO i386_pe_encode_section_info +#define SUBTARGET_ENCODE_SECTION_INFO mingw_pe_encode_section_info /* Local and global relocs can be placed always into readonly memory for PE-COFF targets. */ @@ -235,7 +235,7 @@ do { \ #undef ASM_DECLARE_OBJECT_NAME #define ASM_DECLARE_OBJECT_NAME(STREAM, NAME, DECL) \ do { \ - i386_pe_maybe_record_exported_symbol (DECL, NAME, 1); \ + mingw_pe_maybe_record_exported_symbol (DECL, NAME, 1); \ ASM_OUTPUT_LABEL ((STREAM), (NAME)); \ } while (0) @@ -283,16 +283,16 @@ do { \ /* Windows uses explicit import from shared libraries. */ #define MULTIPLE_SYMBOL_SPACES 1 -#define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section +#define TARGET_ASM_UNIQUE_SECTION mingw_pe_unique_section #define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section #define SUPPORTS_ONE_ONLY 1 /* Switch into a generic section. */ -#define TARGET_ASM_NAMED_SECTION i386_pe_asm_named_section +#define TARGET_ASM_NAMED_SECTION mingw_pe_asm_named_section /* Select attributes for named sections. */ -#define TARGET_SECTION_TYPE_FLAGS i386_pe_section_type_flags +#define TARGET_SECTION_TYPE_FLAGS mingw_pe_section_type_flags /* Write the extra assembler code needed to declare a function properly. */ @@ -307,7 +307,7 @@ do { \ #define ASM_DECLARE_COLD_FUNCTION_NAME(FILE, NAME, DECL) \ do \ { \ - i386_pe_declare_function_type (FILE, NAME, 0); \ + mingw_pe_declare_function_type (FILE, NAME, 0); \ i386_pe_seh_cold_init (FILE, NAME); \ ASM_OUTPUT_LABEL (FILE, NAME); \ } \ @@ -333,7 +333,7 @@ do { \ /* Declare the type properly for any external libcall. */ #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \ - i386_pe_declare_function_type (FILE, XSTR (FUN, 0), 1) + mingw_pe_declare_function_type (FILE, XSTR (FUN, 0), 1) /* This says out to put a global symbol in the BSS section. */ #undef ASM_OUTPUT_ALIGNED_BSS @@ -416,9 +416,9 @@ do { \ { \ const char *alias \ = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL)); \ - i386_pe_maybe_record_exported_symbol (DECL, alias, 0); \ + mingw_pe_maybe_record_exported_symbol (DECL, alias, 0); \ if (TREE_CODE (DECL) == FUNCTION_DECL) \ - i386_pe_declare_function_type (STREAM, alias, \ + mingw_pe_declare_function_type (STREAM, alias, \ TREE_PUBLIC (DECL)); \ ASM_OUTPUT_DEF (STREAM, alias, IDENTIFIER_POINTER (TARGET)); \ } while (0) diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h index 46214a63974..dbc861fb1ea 100644 --- a/gcc/config/i386/i386-protos.h +++ b/gcc/config/i386/i386-protos.h @@ -295,16 +295,16 @@ extern void ix86_target_macros (void); extern void ix86_register_pragmas (void); /* In winnt.cc */ -extern void i386_pe_unique_section (tree, int); -extern void i386_pe_declare_function_type (FILE *, const char *, int); +extern void mingw_pe_unique_section (tree, int); +extern void mingw_pe_declare_function_type (FILE *, const char *, int); extern void i386_pe_record_external_function (tree, const char *); -extern void i386_pe_maybe_record_exported_symbol (tree, const char *, int); -extern void i386_pe_encode_section_info (tree, rtx, int); +extern void mingw_pe_maybe_record_exported_symbol (tree, const char *, int); +extern void mingw_pe_encode_section_info (tree, rtx, int); extern bool i386_pe_binds_local_p (const_tree); extern const char *i386_pe_strip_name_encoding_full (const char *); extern bool i386_pe_valid_dllimport_attribute_p (const_tree); -extern unsigned int i386_pe_section_type_flags (tree, const char *, int); -extern void i386_pe_asm_named_section (const char *, unsigned int, tree); +extern unsigned int mingw_pe_section_type_flags (tree, const char *, int); +extern void mingw_pe_asm_named_section (const char *, unsigned int, tree); extern void i386_pe_asm_output_aligned_decl_common (FILE *, tree, const char *, HOST_WIDE_INT, diff --git a/gcc/config/mingw/winnt.cc b/gcc/config/mingw/winnt.cc index 9b315898fca..1ed383155d0 100644 --- a/gcc/config/mingw/winnt.cc +++ b/gcc/config/mingw/winnt.cc @@ -293,7 +293,7 @@ i386_pe_mangle_assembler_name (const char *name) } void -i386_pe_encode_section_info (tree decl, rtx rtl, int first) +mingw_pe_encode_section_info (tree decl, rtx rtl, int first) { rtx symbol; int flags; @@ -384,7 +384,7 @@ i386_pe_strip_name_encoding_full (const char *str) } void -i386_pe_unique_section (tree decl, int reloc) +mingw_pe_unique_section (tree decl, int reloc) { int len; const char *name, *prefix; @@ -442,7 +442,7 @@ i386_pe_reloc_rw_mask (void) #define SECTION_PE_SHARED SECTION_MACH_DEP unsigned int -i386_pe_section_type_flags (tree decl, const char *, int reloc) +mingw_pe_section_type_flags (tree decl, const char *, int reloc) { unsigned int flags; @@ -471,7 +471,7 @@ i386_pe_section_type_flags (tree decl, const char *, int reloc) } void -i386_pe_asm_named_section (const char *name, unsigned int flags, +mingw_pe_asm_named_section (const char *name, unsigned int flags, tree decl) { char flagchars[8], *f = flagchars; @@ -548,7 +548,7 @@ i386_pe_asm_output_aligned_decl_common (FILE *stream, tree decl, rounded = (rounded / (BIGGEST_ALIGNMENT / BITS_PER_UNIT) * (BIGGEST_ALIGNMENT / BITS_PER_UNIT)); - i386_pe_maybe_record_exported_symbol (decl, name, 1); + mingw_pe_maybe_record_exported_symbol (decl, name, 1); fprintf (stream, "\t.comm\t"); assemble_name (stream, name); @@ -574,7 +574,7 @@ i386_pe_asm_output_aligned_decl_common (FILE *stream, tree decl, visible. */ void -i386_pe_declare_function_type (FILE *file, const char *name, int pub) +mingw_pe_declare_function_type (FILE *file, const char *name, int pub) { fprintf (file, "\t.def\t"); assemble_name (file, name); @@ -641,7 +641,7 @@ static GTY(()) struct stub_list *stub_head; the LTO marker. */ void -i386_pe_maybe_record_exported_symbol (tree decl, const char *name, int is_data) +mingw_pe_maybe_record_exported_symbol (tree decl, const char *name, int is_data) { rtx symbol; struct export_list *p; @@ -761,11 +761,11 @@ i386_pe_file_end (void) the real function so that an (unused) import is created. */ const char *realsym = i386_find_on_wrapper_list (p->name); if (realsym) - i386_pe_declare_function_type (asm_out_file, + mingw_pe_declare_function_type (asm_out_file, concat ("__real_", realsym, NULL), TREE_PUBLIC (decl)); #endif /* CXX_WRAP_SPEC_LIST */ TREE_ASM_WRITTEN (decl) = 1; - i386_pe_declare_function_type (asm_out_file, p->name, + mingw_pe_declare_function_type (asm_out_file, p->name, TREE_PUBLIC (decl)); } } @@ -1354,8 +1354,8 @@ i386_pe_seh_init_sections (void) void i386_pe_start_function (FILE *f, const char *name, tree decl) { - i386_pe_maybe_record_exported_symbol (decl, name, 0); - i386_pe_declare_function_type (f, name, TREE_PUBLIC (decl)); + mingw_pe_maybe_record_exported_symbol (decl, name, 0); + mingw_pe_declare_function_type (f, name, TREE_PUBLIC (decl)); /* In case section was altered by debugging output. */ if (decl != NULL_TREE) switch_to_section (function_section (decl)); diff --git a/gcc/varasm.cc b/gcc/varasm.cc index 747f74ba1c0..2ab9e096853 100644 --- a/gcc/varasm.cc +++ b/gcc/varasm.cc @@ -8672,7 +8672,7 @@ switch_to_comdat_section (section *sect, tree decl) everything in .vtable_map_vars at the end. A fix could be made in - gcc/config/i386/winnt.cc: i386_pe_unique_section. */ + gcc/config/i386/winnt.cc: mingw_pe_unique_section. */ if (TARGET_PECOFF) { char *name; From patchwork Mon Mar 4 17:43:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209658 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1576929dyc; Mon, 4 Mar 2024 09:44:16 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCXrA9BLQVma1VjiYMzU4qwgU27d5a8IghpvvGLFdIJgItGFn8kZfBnpoqrh/BY3oZF6behnrkn6Nh2j4wxNTUPq9fPUtw== X-Google-Smtp-Source: AGHT+IHgUO5mVuAmNq2/Nmq/oexSMAOdiweSB09/oS+BIkwvZKnr597VbrDP8Amdd1v2QNuFJWre X-Received: by 2002:a05:620a:7e7:b0:788:310c:f87e with SMTP id k7-20020a05620a07e700b00788310cf87emr1149250qkk.5.1709574256418; Mon, 04 Mar 2024 09:44:16 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709574256; cv=pass; d=google.com; s=arc-20160816; b=fAeedq70zIjP0J4As7zsWz7AHyYnSdQGPQe+rSZPEWniqTPw3yykqCCtDHv1UdNBEX W4aqwzb+BklJra/wbsgmxH2ZL5uMyRMxYi6stl0+njedB1bszSXME965euXm2tGL9VAJ rIgp6YWnzHDlvi7LwSCWwJmNUjBuc4vz30MF1EA0Fc4Of3wkj4OWo+0GEg7HAx8LGgxU a8Cv8AsosFnmryePSUR4Vk6lSY3sLGBZ4Ccniu2HSrtvaNG99ZXCjb0Um3/hVQ+ZjoUI +UPcpLxLBW1ktvI7o5OtwwnyNlLGMu13BCIvuZIPFq9cgU8GXb+G28z/sFMBuHSwIYIO Hniw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=xxWga+cdWj62L4bFrm6HpZY2MgmB4z+5KIOZpvMm6ZA=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=dRQOsAgagfbO054374zWqtchtsY20hQonI0ckllJESWTEXTU3yQtQopaUz5p9Hlo1G 8vf+Bdn9172L1bDdHc+I6GwAgAQ/pXXz8kLmdgO8Gskmh3QhmrkNTR/VC9YAXsjptpj7 uaf5cn71/478n5aqIONo6SMYDL4YFptvggTIiW65XMqt8GCKvyiZFMjx+KjIgCuB3vG5 f5+6QBSIGcR+m2MIU/7zIEzU9GFOHIMaHhN/jOdeM0aBZqouUjbK0BbdguN3hgb6+0/z QTwuvj/OTurw72/3uukOInIgcJ7cuh7k2EWhUpgDETDGy3pZkZE+BO71mTs4U2IxpFv7 0XFQ==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=gJ9H4rmK; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id w10-20020a05620a444a00b007881f769303si5312177qkp.269.2024.03.04.09.44.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:44:16 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=gJ9H4rmK; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 21BD93858D33 for ; Mon, 4 Mar 2024 17:44:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2117.outbound.protection.outlook.com [40.107.15.117]) by sourceware.org (Postfix) with ESMTPS id 276C8385842B for ; Mon, 4 Mar 2024 17:43:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 276C8385842B 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 276C8385842B Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.117 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574215; cv=pass; b=VXnYIAe5/sjtbToz2gXq62EbIV2XOiLmfze3c3rSAt+rAUva8XTQcsleMACFOCO0AnzTVpLUOfoL9JGInQNPbZp82DbUoZY/paSUfbBbJFsFu7dOLSIE5M/t0hgrkY9FozzZRmnXXLcv4RJs8rzqclY6dNfsPZcXgNR1eNJzQ1o= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574215; c=relaxed/simple; bh=fayN4atEGzFYQ5i/PS9zBfTtIahmKBS++Op0Cmahz3A=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=L2n/FExa2bnbSH8ICWhfLPVBn/TApGn6WYfCS0nEgQSlwC+d/IsT2VL6Ie1JgjKTarmo9BwtKZ2UggeCuhySAorIElYFXguOsRhUuuf0sjfEL+dzHh3UzVbIpYqkrQLkQ6AoNK0H8QyrCX0f1gRatLpLlTrKbN/E8jA26uFcqUI= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FEmYMZbppr6AlEFmAubwENaPELffvk/XEMj9POJH9HM8TojYMS7hSv2WlU00+CJK8yeLI+f8RJ8V8C1xJIzaV7QM/EiBBvPb/gB4ZYALIsmiykgl9UHuxgxz/ejfT82L4XjScVvDzMvmTz0MFQByqh1XuyCmh7M43GWkiovGzIBBQry3ldlWk4rhOVpOPI9yOxhELZkHA7m9oa45rOEPPGKqMx140cGNT34UyVAWdMeqN1crgjSkhrqycVxeTtQ27OphvYVYbAOKAEZNhz05wW/Xfd8lw02mVjc7Cx6fwaZ4VcbLECicLLm9B4UhVKAfrWm7it4k/wH/PavQjQFf1w== 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=xxWga+cdWj62L4bFrm6HpZY2MgmB4z+5KIOZpvMm6ZA=; b=f3I2b3vJb9KOb78socAETQW3+XNTBX0IV+2t10dfTHEC2Bw0eTkoKmGiWEEfaCky3CmF4gTHJ1C/40pclKiZ7z12wOChvAjtMoarr85xekwXY+gwE0P8RtoYxw07IjcqrpHCe8mWpHbGkvBlxXWhPm1yEsPNtNIJWIw0Bh2v4H3FuA01dkoVDkdgSeK7qAit0QmyHebJZ2rRHCvq+w8PvngDxj5LbHX9uEdcmJD728eP5UTLkgSuaMn/DoYw6mnwxdcY5JZP0rmgDtYhPwwjCD1sGr0dpLNACj1QZS8/tYWkJ+1QfG/6wPp5vqBrZy73dlkQF1HgvO+liMjEbg8T+g== 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=xxWga+cdWj62L4bFrm6HpZY2MgmB4z+5KIOZpvMm6ZA=; b=gJ9H4rmK1Jh18zeZpOMsVqRTDsjDJ5qZmlliMuqR7oeoAl+yHhb6aqh7ypboGsjXB+e8WNtarScmOci8XRlvPLDagbi6CXJYWCxNfry5XmNdGAskt1o0Kjb7yTkkdxVn9S0bovtSRJmW+7YCno/LHEi1VaSKL/MfDkg5OQ7tf+Q= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by AM7PR83MB0436.EURPRD83.prod.outlook.com (2603:10a6:20b:1bf::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.0; Mon, 4 Mar 2024 17:43:30 +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 17:43:30 +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 07/13] Exclude i386 functionality from aarch64 build Thread-Topic: [PATCH v2 07/13] Exclude i386 functionality from aarch64 build Thread-Index: AQHablt43GXY62gr7kGtSUDpRm8A7A== Date: Mon, 4 Mar 2024 17:43:29 +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_|AM7PR83MB0436:EE_ x-ms-office365-filtering-correlation-id: e94dd7d7-2725-4409-703c-08dc3c729aa8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0inAlki39HLp1mcB8cjo7grkuQRHaD0miHvb4j0ayKXkwBlCph+ffkiYH2dGS+al97b5GnfHKoW1b2SsLpWQYJC74T2NN4PdzicYcryHCXJqd93OW/xmeI66MZHTkX8y6nG+gGHUIL/ltIx7eEGE7KSF6ePcCjuyT06LO4tdD/ihI2/wesP98ZLdvBAVhfCJaywsVjdeCwaZXeiS/Z84knI814uGN0R5yqcbFb7OQsepFnGQI5AZMMnYA3jj1TWzRAAFD7U+slj9BCamxdqVFTiCEb0NrEnSpF6wokBQBs/VOMbMPouVJGCauQRVkvwACLZ+DBc9i2mEStowjqEjz84+nI061ALtdlj8zqCR0qeHnv07IiKTFy3E+/52dVgMTBHNkTE6qvcQS8J+iKk2SuqFCZy9ZDd5xThLNu/s3mDnaSwT/WgD+ZfBUKHkvKA3Tpe3xJq7/ax2uQS/g2b02AOczYy5d/oB4bocETbnKWuiUdLINfJz8dYi1DiiMXJaa+nojKBXM5MMsbWE3dL3eph6+TTLo0UONzAN3Bc/H28Z+V9g2Gg3Wt5GZbRTysedvbwESBAzGC76vMFYZRd1f6ePYigJm6uakbT0AAQQvfdWwharN2gkGXHx45mmZKnX3OYmpgrk3U9CzB8J+4K8z0iPFQ9Ac4c8pXWgoppeGuk= 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: FIuR0B+ZQ9LSzjnhbYHe1Tea4hA0ufl9fBqyNuFrtzvi4HUGJ7CkIQkmW/tiGEBGBkJFQjrTFoV2QFkMHQvfv8zhabedH3wXCoSRxO2VZfsqCHeDWvC7iw14R13Zcx2BPJeTjBTARver2Z1dgZOg/A0H4kgo+lrFNQ4CXgzzK6dvJsWSfMXYc3VoL5VWiEPmJtA6lkSc6u0v3KkjbvOdeVLJgsVqAIsDOEHCUogTznWvG/UxPyspymY4JTQhy+JPFAyFepP35ik8IkzLQwDyombwsN6/L3uBlpeOpw14rk3SZr8QF00juFMnotLK2rG+0lPVnRvrNVAXGPnsZspUzg6Cr/4roX4JFWTm+sN5I7h03sz2Fw1/RAyucDRBSx0Yh+3GIA7hfBZcb60m5SjMQ90By0k2fRioptD6hELD6L3RrE7TKOnDL5RyplEoW+w8t5gDUrF4KY5LRx65MUiTFqKdYLvhUEgLMwtWp0JVS3HUX3qHhoTJ6L8rALisIxcb5HI+5ee2hwX6Zht381vqRVGLPFHIi2b77jfZUZGJ2VHONlv3Vp5dR4A05L0EDNmUl7ut5WT3vye8u709ykoHovnwLNp/M3BVKxWV/tbNeBuQ+bkJtAq32KpKD2Kuaeav7MYHyubcaCD/BkzftaDW9sgWGjjPPCzw9HLuSJy3bNY33iDo+NWhn++SziFKQczRoTCd0r/CZvkQqfIh/5vLkepr2Pq+yX1lhLXr/9qAeF75tYcWFLnqHQB1sT/ha04WBJcJdtir0D6SDdFZebM861106fZUJ4sKDHj0vGxVMXDGY5ouE4JWG7ztkv8CBDmAaztmA6AsvXjh4Su8/55oNAcwI/zFymfu0Tac/kUaCjDgXiOgM5a4bxhOANRa6D1SPXr9Bm5lM8kP4MNmuHG/KbMQbUeyQ/Xyf+vkUBknElP8xIPUKPLpFoPibEKD+eKmBBToupckGlsFxQleENi50ZwEyvLygR/sAu7GL7FWqnsjLwNAVFvWmK1hL521W21VxpZxZ599zU2rAr74pHF9E8cjXBCKP98pevQSGxR+MVFfxwYiYj4bPoxgTHmtlWgB86Po+UjOtzhntMD5RhvNcsooOY4Kjy/62KFBQR5NtW+/fayfUTmbdvke9bcUG1Rt3su8we/sDSiCtDXSvpmtkEiw9J0Hueg/85/abypTSKrGFtdqaf+gT0jsn9t8zC13ExNqEoy3mHPQNde8nkRSUjgpx1S8KK9R6QR7T1Guy1VsS5uq+Menh6CDPGuDCnWSPVnqUfDGRiVlrmeCrdPKD253ou+5ZTSOB4Tfa4gKBKDQ+C53F+u+Z6jOflX/vDnUKEDCNzWvV+yPKf87KE63WscaIDFKJonzwbYExGDop8MGILIwnfTDZGS8nh+i7aeck8Cr/fAepw09g1I/RCuZb3balIRAOxJv1myJ5/YdevPsvyEysm3MQsxyvIEEPOpi7k3vdfSM0e4qZFO3bFgZj0nRrtXYZ1wbDsY4Irv6Wr3cHrF2IKrp3lQ4AV7vaVy6W5fKDpAOMn7piCDtEv9EVXvMy2NNHihhRdRVRddTWUMzzvn94+1kRy7nV8x9LuFD 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: e94dd7d7-2725-4409-703c-08dc3c729aa8 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:43:29.8172 (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: 1WDNlWfF6MoNcYYDjyweZvbxZ3V0UcCS5h2mdOf1GIGa2XwKb2IJQCaz2aD/7ni3CtcO4yTCMq1b1Gl2vn8IrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR83MB0436 X-Spam-Status: No, score=-9.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, KAM_SHORT, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792618535301631918 X-GMAIL-MSGID: 1792618535301631918 From: Zac Walker Date: Fri, 1 Mar 2024 02:35:40 +0100 Subject: [PATCH v2 07/13] Exclude i386 functionality from aarch64 build This patch defines TARGET_AARCH64_MS_ABI in config.gcc and uses it to exclude i386 functionality from aarch64 build and adjust MinGW headers for AArch64 MS ABI. gcc/ChangeLog: * config.gcc: Define TARGET_AARCH64_MS_ABI. * config/mingw/mingw-stdint.h (INTPTR_TYPE): Use TARGET_AARCH64_MS_ABI to adjust MinGW headers for AArch64 MS ABI. (UINTPTR_TYPE): Likewise. (defined): Likewise. * config/mingw/mingw32.h (DEFAULT_ABI): Likewise. (defined): Likewise. * config/mingw/winnt.cc (defined): Use TARGET_ARM64_MS_ABI to exclude ix86_get_callcvt. (i386_pe_maybe_mangle_decl_assembler_name): Likewise. (i386_pe_mangle_decl_assembler_name): Likewise. --- gcc/config.gcc | 1 + gcc/config/mingw/mingw-stdint.h | 9 +++++++-- gcc/config/mingw/mingw32.h | 6 +++++- gcc/config/mingw/winnt.cc | 8 ++++++++ 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index 26564ead079..3aca257c322 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1278,6 +1278,7 @@ aarch64-*-mingw*) esac default_use_cxa_atexit=yes user_headers_inc_next_post="${user_headers_inc_next_post} float.h" + tm_defines="${tm_defines} TARGET_AARCH64_MS_ABI=1" ;; aarch64*-wrs-vxworks*) tm_file="${tm_file} elfos.h aarch64/aarch64-elf.h" diff --git a/gcc/config/mingw/mingw-stdint.h b/gcc/config/mingw/mingw-stdint.h index c0feade76e9..debbe829bdf 100644 --- a/gcc/config/mingw/mingw-stdint.h +++ b/gcc/config/mingw/mingw-stdint.h @@ -46,5 +46,10 @@ along with GCC; see the file COPYING3. If not see #define UINT_FAST32_TYPE "unsigned int" #define UINT_FAST64_TYPE "long long unsigned int" -#define INTPTR_TYPE (TARGET_64BIT ? "long long int" : "int") -#define UINTPTR_TYPE (TARGET_64BIT ? "long long unsigned int" : "unsigned int") +#if defined (TARGET_AARCH64_MS_ABI) +# define INTPTR_TYPE "long long int" +# define UINTPTR_TYPE "long long unsigned int" +#else +# define INTPTR_TYPE (TARGET_64BIT ? "long long int" : "int") +# define UINTPTR_TYPE (TARGET_64BIT ? "long long unsigned int" : "unsigned int") +#endif \ No newline at end of file diff --git a/gcc/config/mingw/mingw32.h b/gcc/config/mingw/mingw32.h index 58304fc55f6..040c3e1e521 100644 --- a/gcc/config/mingw/mingw32.h +++ b/gcc/config/mingw/mingw32.h @@ -19,7 +19,11 @@ along with GCC; see the file COPYING3. If not see . */ #undef DEFAULT_ABI -#define DEFAULT_ABI MS_ABI +#if defined (TARGET_AARCH64_MS_ABI) +# define DEFAULT_ABI AARCH64_CALLING_ABI_MS +#else +# define DEFAULT_ABI MS_ABI +#endif /* By default, target has a 80387, uses IEEE compatible arithmetic, returns float values in the 387 and needs stack probes. diff --git a/gcc/config/mingw/winnt.cc b/gcc/config/mingw/winnt.cc index 1ed383155d0..2a4fc03fc56 100644 --- a/gcc/config/mingw/winnt.cc +++ b/gcc/config/mingw/winnt.cc @@ -224,6 +224,8 @@ gen_stdcall_or_fastcall_suffix (tree decl, tree id, bool fastcall) return get_identifier (new_str); } +#if !defined (TARGET_AARCH64_MS_ABI) + /* Maybe decorate and get a new identifier for the DECL of a stdcall or fastcall function. The original identifier is supplied in ID. */ @@ -250,6 +252,8 @@ i386_pe_maybe_mangle_decl_assembler_name (tree decl, tree id) return new_id; } +#endif + /* Emit an assembler directive to set symbol for DECL visibility to the visibility type VIS, which must not be VISIBILITY_DEFAULT. As for PE there is no hidden support in gas, we just warn for @@ -266,6 +270,8 @@ i386_pe_assemble_visibility (tree decl, int) "in this configuration; ignored"); } +#if !defined (TARGET_AARCH64_MS_ABI) + /* This is used as a target hook to modify the DECL_ASSEMBLER_NAME in the language-independent default hook langhooks,c:lhd_set_decl_assembler_name () @@ -278,6 +284,8 @@ i386_pe_mangle_decl_assembler_name (tree decl, tree id) return (new_id ? new_id : id); } +#endif + /* This hook behaves the same as varasm.cc/assemble_name(), but generates the name into memory rather than outputting it to a file stream. */ From patchwork Mon Mar 4 17:44:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1577361dyc; Mon, 4 Mar 2024 09:45:10 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCWg3LcqqWjqXl+JdF33PPwCGhjHvZ2pxrM7wWNolomtckpG0vzVRL+d7c/pK4wXba1yRYd9sQEZQCZbWHR31YhenhnvUA== X-Google-Smtp-Source: AGHT+IEsAeiov9x/YuCkoVuCXJRrBiwzXLePfFBbtK4e9qbdUhqKErzcfAoVehhD9F5xkZ4ZYCq6 X-Received: by 2002:a0c:bf0a:0:b0:68f:2a5e:4fa5 with SMTP id m10-20020a0cbf0a000000b0068f2a5e4fa5mr9691012qvi.11.1709574310483; Mon, 04 Mar 2024 09:45:10 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709574310; cv=pass; d=google.com; s=arc-20160816; b=WcVCw+kh6HhpKIIUdVjfNUyi6UYizju0pz6R/Xw0DNTq9K9b6oAHVlbuWA95d/gR8R dIJ5jEQmC9/j/O7KK70yyjybJyIJsTRFqMdX7AgB38EGfL1QDNr+AqHBxePQVzC32xe2 2gBXLPFkBXhwTh4+9wTWmfL/a8NqmLbYxsjyzKgY+4skTdt6ewD5is3NJpQKS3U/tHeW e6ZeE/z4KupmIg4z9WHWic2xBxFJBV987adKzeGcMRyoAobi/oX+QDf2U31ywPssYEAk CW1BhtS92OvWSIB95dpDq5COBf0RA3aRfAuGVmBZcC5JbBJ6kKDNy90n0zzvD931Yb8Z ClaQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=xxR/Oxx7wmXC31TBb8zZM8iQRKbfndoTHFE7cYw+SSs=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=CV3lV7ILbKCbHkg3fToqtYBmHmWqBQf0eya9pHmMecgoElULl40yxuPmte2vsJoSRL AqNbh8e1mWqIySr0tQYY+DcCVxjgq/CivmiNgBz99FgpeQSI1zudw8Yvy5Rtrc90M++c PiIXNoRCDgpPuZhLXsIz9GZ7Ojc3SyRKE9smdEdwsv0oyWMLJvNmiJmFVHQtmpKOAo2A TTKNRcn+Bjd6hFaVYnlVA7j4feQnjxN34B+FjkT9KeLpiyzD0B4LXSSwAZZLjfNjJ/Wn 9adzJVRwN3Edf3RkiH+2Xp0NiWApccnx4RiCXJTdsjuMo/cqSBYbtU8i9F9WXusd6r86 YKkg==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=LZHqcysk; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gs11-20020a056214226b00b0068fff3e72ccsi9977926qvb.372.2024.03.04.09.45.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:45:10 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=LZHqcysk; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2092D3858C54 for ; Mon, 4 Mar 2024 17:45:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2132.outbound.protection.outlook.com [40.107.15.132]) by sourceware.org (Postfix) with ESMTPS id 31BF8385841B for ; Mon, 4 Mar 2024 17:44:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 31BF8385841B 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 31BF8385841B Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.132 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574268; cv=pass; b=OnvlKNoveHbUSTLC+lvC3J6ZwfplOv7nNY/qcGNsHfaNtThX5DDUGn3p2U/3BL6MRu8y9I3b6mNYbTPawrmoMwdaw1Qw/wFOKVizbjF3tUoUWasvZpWyrTFa7xlEDG9qDHBT56o0gB/wvxk/cjyRoe9vkvmLxulTS1jtr/NfgfY= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574268; c=relaxed/simple; bh=SRfkjeiI//AAAiFpgOZcfeAT6ogFObfD39cw0sK1hM0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=t4EFqQWgxlTxVD8ii8hlJ4VJqMTj695NAVSNXuMfdEHGPkN1C0wLoud1ZIGYAw7E6Rv6uoKv9FxOAC6tmCleBCq0xT1sfsxvJBFrD0drlVmJfpGYvEIankftkbw1PABEK8bx8hal4rXbApO6z8PESHKg2/S1adpdd/xpokpzGFI= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZJGIlnQOz+cdJIuj0kra1Ct+eCgOKG9O9wfxds7Gx2kyNLn0TvMWmde4IyMUptOkGgtorVUYsTnRQp75LovNpTq/l7GM+CotNFkDwvCLY7MaEWYzTFXTA43yw/DDLMwaYKmVAKaCzbCkI5OUpnpF5BFR05rIrDEd+fWwdplR5ew1ttzS7OHhB/MIzS4+TnrfhzomiFKSOaKF7wvUw0p5gzrfAQz3iz2cs1l/nIV7VdsA6SxNvYXtrDyux+dfqod9CDtNUtvamxRN9/vpl/WzoROLUJL4t+lV8KhcW1Scf1+w8UFkeudVMPIC50i9DfHkZk1q8XmHSB+EuzHDoaEk2g== 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=xxR/Oxx7wmXC31TBb8zZM8iQRKbfndoTHFE7cYw+SSs=; b=dGzPTI/BKL5GNf3EKBsoOsi3l+1sgVipwSMzbXfNvE40a4DREwNew7N8SS8+A2bRaKhh2d4v0orSK06LhtB9OQeULiKsooEUK5BstPi9e+NcHI7JQBw/89Et/RzYc9chU5RHyHNtjjKZkKzWWdzn1NG6WGvgz7IJ7A5TPFjIYU5O7koIcBC9P5MvZtFrWFs3rhYzLvBXGSMX8zChNQF5k8DrTJCQdBgHLG/b9U2sxi2nw3w1TrEC2yVHiFjwzHFOPuo71+pMOc5POalu+gBSJAoBiUAjG4ibCTfeY1mV4lOuwRN3RgKFPBwcq37rwKZAe9WYC2WP5v+RBzO0lpak4A== 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=xxR/Oxx7wmXC31TBb8zZM8iQRKbfndoTHFE7cYw+SSs=; b=LZHqcyskcqZDim51+qI80kJBNlQHIwTjhy4rRZFBVJLeViLtKAznA0g1s8inB86lscusuWcYqxdWNlh16op4xoDpb17vCXiBFrdHQFA5Z089Huwi4XOwa5qgYnHZ3gwEYY0qJrITveAQUODLa2sWmMK+EUYCu+CcF/1l8+V19SA= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by AM7PR83MB0436.EURPRD83.prod.outlook.com (2603:10a6:20b:1bf::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.0; Mon, 4 Mar 2024 17:44:22 +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 17:44:22 +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 08/13] aarch64: Add Cygwin and MinGW environments for AArch64 Thread-Topic: [PATCH v2 08/13] aarch64: Add Cygwin and MinGW environments for AArch64 Thread-Index: AQHabluXAcOMVPCXtkuFlFB6rJAtTw== Date: Mon, 4 Mar 2024 17:44:21 +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_|AM7PR83MB0436:EE_ x-ms-office365-filtering-correlation-id: 4faa2a10-51e5-495f-b089-08dc3c72b9c6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ut+Il7e0rRTj18QZPEf/v+E9OK7RQiNYy3BOLlkZ2PRBZ0UA/GACcwQeCbg+/BWuSIOWIGZ9RvKAwAQkgmVOvy8Yoq0OdrHBcHraecD20nrv5o8ygkRdTU33rLoZ8S5uDguV1wrlt5es1pkGfcMuvnI7gTrEZqA8ZEFF0M47fXn8B66zlEXLPJM/jC/M4C6xNBBwUsSycImHagzTJTeyVnzZNmkzer024aZDd649KB13WLxbqkVCqeUKYNqJFC+CPRYALqeMOjb0e0bjVmxNxs86gfWEytyF4R50Vy8UH52ub+Nwwr7xh+JczUN9VDXbi3NVIQJMSyQjrdDCBjWGZCx3HVK5LJM77ArdGvzu4BpfIh3vIcKUqqajcX/WB7Zp9WxeSUfWa9NiYi3OkuQ9aUJv397lZhhKaxqUo1/feJIFgzAJWgqfo8gSb7es7yvnrs0Z22Uyd2J+9U5yGCBFqP4x4ac6jWTUut+mV2BCRmqZSilKK34zIjPBAThtGpKHItQGjMzxBTgS7xr1TgoI7pinjOauwDNQpWefX0fQF93qTGV3IfFaSgCcM2ecrJuvvfhLaqAv5BngyYYpaatTxO/tGjkr9sePtJEld2oACWzMPKl6kILqg0vL8qR3sXzaoT4x/ScOCy65MjVh3DgXZb+33rLmHMiV3ddPu/DjKT4= 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: bgLm+h3p9r7OMQqyyS2T2jT7BXDtEavgowhfqVJwoQQwJFoT3J1cz8m+5zasqy8IEzfsLplp50i0T/33TP8ziGDuH+WkZninlN/BCPnTTSd0xs1Uw9GiYwb5VfEWKk8nGvrIGWGf8uPBDiC6h2+H0A9/YZVhhDHsUecKcsuRLx2/11N1IT/rTc05oC8jP3Fdsfgs5Ib2aHvQWjawghPiU5FQrqfWdgvkJdFuDnKZdhbRiUUnN3LtaVSOmpwJdxsXm0tgKQTJmpZJToU9Hcd6sAmgqFl67px63drvSz8vDrQVgvLn5fup2GYSpikJgoYsQN9bZ4YbLeECDqk3HpuqCKrxCD6JXR4XxSeW/9/Xit480ZDU9ZJDGqclJiZfCr6/dTxl3MeA/zo7rVP7hdmaFR3b4P+WmlTXjpnKGLtSqKLz+zTo9aJzfs1HnTp65qkRZUZ/Ih/6Zy/oeo4CxlSvYmpRX6318D0HT8Bb/+3bUGE7xoM82MZMbuUNkCndqHFMLr2wIi0VY9vckAOJL2RgFJ2xkNxobonh79ltLykOvjhiPM4TRm9akSDbmzhhMUh1zV25THC+PT6PZzJ7P+4/48114xfoaxswY0QTXh1c0soHtQZlnhVLLFjtNXmjNEQt6FafuBmiCc51CQ7HWQ0BwfnjyKcFdNsqlPJnIl4jdHStQXCuWZgOPU0X3Rm13PGhYWDyVGunZYu3nkxKqd6b8QuVgqmDPEcSXCwNk/NVVKK0TLfno0jHat9Im/meWR++jyc3RSrn5PbD3JoRX/7JSjP/mnKhn1ZxcmiZC9+04mn5l2+qGZPhHs5gQK2BZPMXLyuz+xLoA2C1z++OqAbDOvuD3pLg3aQ6Z3wGF92Wv/aNAX+nhbzaFoxyTcQu0mEJXFCEvYaND9Kf0sCwoDepnlc2l1Z/sX+1LCGNpvvWs986FPMVfVMdQJ1W9rNvKGoj/onLOrdZE7YwkNkYOXlH1Ep91tM7THWWb+unHLavLmajbZ8Hp8/DcTNHJUkr4BGG6m78/3yCs3Lq6+YVhcqsNVMLwOHDcwJ1VpFrwFKmqPojF3zZ/JP2CWwmdtJDMprwTMLHSoJfCHFjdzb38dOSdrJFjxux2yYIXQZquO5H+K6W0J6qMpZ3+ZE8pQQGMvLFKTQvYCB885rAQT3RC/laQunTOIJ4lbXyyxmn7FFBX/LD+EtiOfcrtGW50XKkzkwDgLkQXl2uD1wFHRgNaIR6jX90IQsdXYrNlBP3C7WJQ8cFDBF+3rLNXW5RuKaUbbs+xA1mnq6vsxiVaZ6X9ckTncVUU72MFLCJVHHttPlcCYFPwrr/e+rxGTu0bPAZlysaMWZsy7ynxX4mZ2PSiV+zDjqbeyMBtag4ZWc49LWG56Iy+Tuhgtppdq9gUwQlSCo7MVrJ6GWpuAGMDqBpb86VVQELPFDRyKNVGfl4a1rMgDB54wIcqPXeTF3QeCWedn7QUnTdFxqH9CLOg1NGC9yvZeJRgmAkT1d7Z/An4/UtADoNnPgI6HuVsgO4uIlG06qEGaLGvhVJQTYKsrQ0uALSXRc1Fq/XTYXvJJaN9jKQfs1VYnP9uqt0gajD0e7CAs+6 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: 4faa2a10-51e5-495f-b089-08dc3c72b9c6 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:44:22.0094 (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: SlOdlULqWif/5RGj0Y0DTXDEM9JBpv6ueLeP0N2g8mAcKqqXpHbpu7sx5C+gw/XEY4uKL3zOxuUUrPlTzTrA4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR83MB0436 X-Spam-Status: No, score=-9.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, KAM_NUMSUBJECT, KAM_SHORT, KAM_STOCKGEN, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792618592414117621 X-GMAIL-MSGID: 1792618592414117621 From: Zac Walker Date: Fri, 1 Mar 2024 10:49:28 +0100 Subject: [PATCH v2 08/13] aarch64: Add Cygwin and MinGW environments for AArch64 Define Cygwin and MinGW environment such as types, SEH definitions, shared libraries, etc. gcc/ChangeLog: * config.gcc: Add Cygwin and MinGW difinitions. * config/aarch64/aarch64-protos.h (mingw_pe_maybe_record_exported_symbol): Declare functions which are used in Cygwin and MinGW environment. (mingw_pe_section_type_flags): Likewise. (mingw_pe_unique_section): Likewise. (mingw_pe_encode_section_info): Likewise. * config/aarch64/cygming.h: New file. --- gcc/config.gcc | 4 + gcc/config/aarch64/aarch64-protos.h | 5 + gcc/config/aarch64/cygming.h | 175 ++++++++++++++++++++++++++++ 3 files changed, 184 insertions(+) create mode 100644 gcc/config/aarch64/cygming.h diff --git a/gcc/config.gcc b/gcc/config.gcc index 3aca257c322..4471599454b 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1267,7 +1267,11 @@ aarch64*-*-linux*) aarch64-*-mingw*) tm_file="${tm_file} aarch64/aarch64-abi-ms.h" tm_file="${tm_file} aarch64/aarch64-coff.h" + tm_file="${tm_file} aarch64/cygming.h" + tm_file="${tm_file} mingw/mingw32.h" + tm_file="${tm_file} mingw/mingw-stdint.h" tmake_file="${tmake_file} aarch64/t-aarch64" + target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc" case ${enable_threads} in "" | yes | win32) thread_file='win32' diff --git a/gcc/config/aarch64/aarch64-protos.h b/gcc/config/aarch64/aarch64-protos.h index bd719b992a5..759e1a0f9da 100644 --- a/gcc/config/aarch64/aarch64-protos.h +++ b/gcc/config/aarch64/aarch64-protos.h @@ -1110,6 +1110,11 @@ extern void aarch64_output_patchable_area (unsigned int, bool); extern void aarch64_adjust_reg_alloc_order (); +extern void mingw_pe_maybe_record_exported_symbol (tree, const char *, int); +extern unsigned int mingw_pe_section_type_flags (tree, const char *, int); +extern void mingw_pe_unique_section (tree, int); +extern void mingw_pe_encode_section_info (tree, rtx, int); + bool aarch64_optimize_mode_switching (aarch64_mode_entity); void aarch64_restore_za (rtx); diff --git a/gcc/config/aarch64/cygming.h b/gcc/config/aarch64/cygming.h new file mode 100644 index 00000000000..2f239c42a89 --- /dev/null +++ b/gcc/config/aarch64/cygming.h @@ -0,0 +1,175 @@ +/* Operating system specific defines to be used when targeting GCC for + hosting on Windows32, using a Unix style C library and tools. + Copyright (C) 1995-2024 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3, or (at your option) +any later version. + +GCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +. */ + +#ifndef GCC_AARCH64_CYGMING_H +#define GCC_AARCH64_CYGMING_H + +#undef PREFERRED_DEBUGGING_TYPE +#define PREFERRED_DEBUGGING_TYPE DINFO_TYPE_NONE + +#define FASTCALL_PREFIX '@' + +#define print_reg(rtx, code, file) + +#define SYMBOL_FLAG_DLLIMPORT 0 +#define SYMBOL_FLAG_DLLEXPORT 0 + +#define SYMBOL_REF_DLLEXPORT_P(X) \ + ((SYMBOL_REF_FLAGS (X) & SYMBOL_FLAG_DLLEXPORT) != 0) + +/* Disable SEH and declare the required SEH-related macros that are +still needed for compilation. */ +#undef TARGET_SEH +#define TARGET_SEH 0 + +#define SSE_REGNO_P(N) 0 +#define GENERAL_REGNO_P(N) 0 +#define SEH_MAX_FRAME_SIZE 0 + +#undef DEFAULT_ABI +#define DEFAULT_ABI AARCH64_CALLING_ABI_MS + +#undef TARGET_PECOFF +#define TARGET_PECOFF 1 + +#include +#ifdef __MINGW32__ +#include +#endif + +extern void mingw_pe_asm_named_section (const char *, unsigned int, tree); +extern void mingw_pe_declare_function_type (FILE *file, const char *name, + int pub); + +#define TARGET_ASM_NAMED_SECTION mingw_pe_asm_named_section + +/* Select attributes for named sections. */ +#define TARGET_SECTION_TYPE_FLAGS mingw_pe_section_type_flags + +#define TARGET_ASM_UNIQUE_SECTION mingw_pe_unique_section +#define TARGET_ENCODE_SECTION_INFO mingw_pe_encode_section_info + +/* Declare the type properly for any external libcall. */ +#define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \ + mingw_pe_declare_function_type (FILE, XSTR (FUN, 0), 1) + +#define TARGET_OS_CPP_BUILTINS() \ + do \ + { \ + builtin_define ("__MSVCRT__"); \ + builtin_define ("__MINGW32__"); \ + builtin_define ("_WIN32"); \ + builtin_define_std ("WIN32"); \ + builtin_define_std ("WINNT"); \ + builtin_define_with_int_value ("_INTEGRAL_MAX_BITS", \ + TYPE_PRECISION (intmax_type_node)); \ + builtin_define ("__MINGW64__"); \ + builtin_define_std ("WIN64"); \ + builtin_define ("_WIN64"); \ + builtin_define ("__stdcall=__attribute__((__stdcall__))"); \ + builtin_define ("__fastcall=__attribute__((__fastcall__))"); \ + builtin_define ("__thiscall=__attribute__((__thiscall__))"); \ + builtin_define ("__cdecl=__attribute__((__cdecl__))"); \ + } \ + while (0) + +/* Windows64 continues to use a 32-bit long type. */ +#undef LONG_TYPE_SIZE +#define LONG_TYPE_SIZE 32 + +#undef DEFAULT_SIGNED_CHAR +#define DEFAULT_SIGNED_CHAR 1 + +#undef SIZE_TYPE +#undef PTRDIFF_TYPE +#define SIZE_TYPE "long long unsigned int" +#define PTRDIFF_TYPE "long long int" + +#undef WCHAR_TYPE_SIZE +#undef WCHAR_TYPE +#define WCHAR_TYPE_SIZE 16 +#define WCHAR_TYPE "short unsigned int" + +#define drectve_section() \ + (fprintf (asm_out_file, "\t.section\t.drectve\n"), \ + in_section = NULL) + + +/* Enable alias attribute support. */ +#ifndef SET_ASM_OP +#define SET_ASM_OP "\t.set\t" +#endif + +/* GNU as supports weak symbols on PECOFF. */ +#define ASM_WEAKEN_LABEL(FILE, NAME) \ + do \ + { \ + fputs ("\t.weak\t", (FILE)); \ + assemble_name ((FILE), (NAME)); \ + fputc ('\n', (FILE)); \ + } \ + while (0) + +/* Get tree.cc to declare a target-specific specialization of + merge_decl_attributes. */ +#define TARGET_DLLIMPORT_DECL_ATTRIBUTES 1 + +#define ASM_OUTPUT_ADDR_DIFF_ELT(STREAM, BODY, VALUE, REL) \ + do { \ + switch (GET_MODE (BODY)) \ + { \ + case E_QImode: \ + asm_fprintf (STREAM, "\t.byte\t(%LL%d - %LLrtx%d) / 4\n", \ + VALUE, REL); \ + break; \ + case E_HImode: \ + asm_fprintf (STREAM, "\t.2byte\t(%LL%d - %LLrtx%d) / 4\n", \ + VALUE, REL); \ + break; \ + case E_SImode: \ + case E_DImode: /* See comment in aarch64_output_casesi. */ \ + asm_fprintf (STREAM, "\t.word\t(%LL%d - %LLrtx%d) / 4\n", \ + VALUE, REL); \ + break; \ + default: \ + gcc_unreachable (); \ + } \ + } while (0) + +#define READONLY_DATA_SECTION_ASM_OP "\t.section\t.rdata,\"dr\"" + +#undef SUBTARGET_OVERRIDE_OPTIONS +#define SUBTARGET_OVERRIDE_OPTIONS \ + do { \ + flag_stack_check = STATIC_BUILTIN_STACK_CHECK; \ + } while (0) + + +#define SUPPORTS_ONE_ONLY 1 + +/* Define this to be nonzero if static stack checking is supported. */ +#define STACK_CHECK_STATIC_BUILTIN 1 + +#define HAVE_GAS_ALIGNED_COMM 1 + +#undef MAX_OFILE_ALIGNMENT +#define MAX_OFILE_ALIGNMENT (8192 * 8) + +#endif From patchwork Mon Mar 4 17:45:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209661 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1577890dyc; Mon, 4 Mar 2024 09:46:02 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCUQW8fJjqCxt2dwSYqWPGavCBqhwMq5q2EsdY8blm+bHWq1tg/zs4IQWYu1GNxVdjR06L+ruwL3eMneGwxxdNnCsdRoig== X-Google-Smtp-Source: AGHT+IHexEiX2PhIIV3kylrzAOb8nfoU0WAxQwwUu89XQTZbI41yg9IuenDjd11rIcY1QeK+H/Dy X-Received: by 2002:a05:6102:32c2:b0:472:d37c:16f2 with SMTP id o2-20020a05610232c200b00472d37c16f2mr1989891vss.12.1709574361698; Mon, 04 Mar 2024 09:46:01 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709574361; cv=pass; d=google.com; s=arc-20160816; b=kJdCg4Q2WaSl6fEEzab0+V9Gfi7y23v3JnoWO5TEi/5mR6nnaFORU51+/DzJKTvNUy RNMMoCQ+FXwf5kX2GbB8iIfVTVUoKDgW/UwlsQFwCU6YRiQSfTeYqJOXHxsIj09/lR2k iPrH5ebDyy1OsXVK06DXZkYRe+bCNePrO96XLUKH0Cr/M2g94yttoiTswZzCAhj88iJY cG2aAxz6n00GqAwHPHe+o75BBrYS6AaA3sEtKm3s498BHznynuHhllaHsjKefr/ElrR/ GVshADt56c800BW8lGM8LCuGQly+Ts+HTXVqQMOfBcMKuSEFTUPVpLssAyY+O0Eb2QK6 JVng== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=mN+b+ct3lsmc9HjbBWaml7eEbWnTEIPPO/xwXfZymEc=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=m3M91aItQkO+JEF7CMmu5Zk8D3WN7ZiYXyzJYGAUJ6A5Ita/VHrTlivw0jhdYgZZGI yqRRbOtziz7zC1e1sI96Vbk4Vq6qeb8jrmuvQNZutDgUcPfhGcXu+pm8bjPtk9ivdd78 u+F9lX/A30eyoM+9dM+UVSCNKMOAtdvi3kDlVIcu4e2gz50YjAxRlKC1QeLeHMM9OsLM PAAuH44lpRKhB4bUR2QznPOD6eed5u0NdatO9OsleuLAxVYSsZCKi5vXhN4B8pA1vDba X6cuM3k8osmBD/azT+nD1qD0wfXb7WkQTwi1SUUJVSRwSV31yRv3KLrb7v69BvflvxIb LQPw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=ZEz4OSUa; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 31-20020a9f2022000000b007d6a881a1d7si1393384uam.138.2024.03.04.09.46.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:46:01 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=ZEz4OSUa; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4F98D3858C66 for ; Mon, 4 Mar 2024 17:46:01 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2095.outbound.protection.outlook.com [40.107.15.95]) by sourceware.org (Postfix) with ESMTPS id 53F333858C55 for ; Mon, 4 Mar 2024 17:45:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 53F333858C55 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 53F333858C55 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.95 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574321; cv=pass; b=LphNN5hD11+UV/QIT89/g+XGMJ5Dbk5V1NTL2NQSIT7q25mjCuuQAnYo6omXBWOJPSVwZie6mC5HJlyq8+fbXy2BrDJTcT/1iDRpoZmBdKdo0ROk+vCzE8uouAJkfWtAdn/SppfU8HbflGwBU+nD50tZ6O19suBaWgSzIkIXuM0= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574321; c=relaxed/simple; bh=nTI6IYQJUSwfqoG6ORPsc1HPpgtvfgZN30ZZyaCXH64=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=jZafPrYCyTy6XV1EXxAQFAFPyvlYqE5DFnptxN1YytzOgrrJcqcrkOziupE6NC+Vv9RtxwLwV5Tr48GCbmCp3uqu2vzg/t8TSRUIXp6z2kT6jmjsZGqtVYn7vEAbc/KhW78Bck8Wo8IJpOIrytGz+FWD8VLdW3LgVIwv6EEQELY= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mt/xYnbIhVC8R+kB7+tcCPeJ/R6cTf5tVtSkM5tDB1b+KKTUBKwYTSmXuF40cjhnVwR7msmdACsFb2o1jx6Rz/oi9D9ZFHse5RxdbMuOIkNo9Kqtt0LZszJMep5G8y5rQ2Dm+/K++QGAAxIQaetuIu1ZtBG7tewB6Iu/58Xqyz+A6woMgZ8U775NWr3hPpiIFrDOYzxKOmIPXVJhwn9ov/DspH30aeS8xBkilFdv0hh0jU7BRg4lHSzBjWKBoN3sMF+LGMRB46QLRMoYKq+7D+Um42YFteeoHRJWmR7xdC+oLUnRPssTrwtMOdB3Ji+3Bjk4FfdTu6J+pq7bsogf3Q== 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=mN+b+ct3lsmc9HjbBWaml7eEbWnTEIPPO/xwXfZymEc=; b=E4SZm6Jujw49mXO96btaizjxUH0HdTCj227xpnzYyqKZ49Q/mtQaikcEUAwEzE5SWsi4Gj0lCfkUXBkKtlt4LPhBKErkMeXInfZWVOriK4lW45CA0JZkoiEgeYQAXJBMlYUx8eEyAD6MDVkz1ITSne5qSt6h0zt+po36K5MlEJBjWd7nufGUlVek5iDxzAqHjb9Xmdbgm9xU5X3IhloqMtygPi12tNoPKI3JSuYKX31KfdsIs0/34dG4b/9vrwjWpmHYYLOZD6WljqXWbqbHMIFotNj3hBXJMpFakM3BvA79V9ycwogAjemWw3LwWD4PjPhlNuGqvXyJucGOeHrqOA== 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=mN+b+ct3lsmc9HjbBWaml7eEbWnTEIPPO/xwXfZymEc=; b=ZEz4OSUa4O0UWu2ui4nninDCbwaVVojcgrYIPZb1ZsCXR1ozFnTxe+urBg3uftEcS1Bx7RQkx0q6k37KSYOPRnEhVrStpNi+AFd6k4GuKrCvAqs3ipSe1fDEayE0nXs8ph98A9Zl9wq+Nb3X6Sn58C5PB8wXAg0GlchpR3fHM4I= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by AM7PR83MB0436.EURPRD83.prod.outlook.com (2603:10a6:20b:1bf::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.0; Mon, 4 Mar 2024 17:45:17 +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 17:45:16 +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 09/13] aarch64: Add SEH to machine_function Thread-Topic: [PATCH v2 09/13] aarch64: Add SEH to machine_function Thread-Index: AQHablu3Pe164sKydEuwgyEpymLbPQ== Date: Mon, 4 Mar 2024 17:45:16 +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_|AM7PR83MB0436:EE_ x-ms-office365-filtering-correlation-id: 36213660-50ee-4512-e0a5-08dc3c72da1a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: K86WGOGotCti3VfC0mgz2MLtGoJ5j9mFtePmvIQn/VUhqBCylBn8jdcRBi7ZCJQyPHpLlr9KP/BwmCVJQCT0BKZoRwi+8ebrsnM5ctj+3Nhstv4azyZtm99hmSdI4ytObmvk35euSgOfvcYv24aGW1zSAIyZc6WZTPTTFw76ztbJNpE6CygkSRxijKQwQynpkE5Gzrv/i5GZ4rZNa0VjA2zSrrOovCzL31ho4vedfo5sfcOkF7JZqqynD4u3EE7fXz/kHloXckIGxAMriIE0l6huWniX4tgyg+JH/m8Jm4c+chxovtPv2NBkvHIDLiaTa2acoEATI7K5M0JWzrxDDJwxFcjihe45eLCN5T1zNP/ox3v3Alkbfxvq2OjE3Mw6575Pb7w01cQbXiNrTJ590g5fTj5jh9uTNXHhX6ZfE6nYyasZlEeSoUNwBnWSC/OqzubG4i4KcPI6vOUua38xWiKJUjR4Bzz5nwMV6gNAW0dZtwDln++C9d8nwudCzFUVV2jQ0dPrwwDF8zMs1D+lMcbOwNaXFobFwsiPuIA2tL8/Z4FN2L6QSrrAMdXzzHNdm68NoLL8YICyJrFGt664UbyuMjNi0ZNfzdQVwhY2y1lJEpP1FrTZ9JeR6i3pgagK1jlKRCj+Tfsy9kRQxliQAatipNGkBtG8PRw1+VosxGuuIuh4uebP3Hj+BxIUlvIbr+ByG9BZKkGIOm6cOYPZkw== 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: HITxf8q5NiMwQohQ0DmrthMZzlKPwSNMYB3rRyon+Q8Rd4QF8n8z66uFLXAIe2gpcDUkJUI2OZGsEHPhTK6rlV/65nPVCPFUcK3x9ExFwx4qfPSGxWTpPRQ5+RhXm7BY44+GV9AwaoTGiOfZUbxW/uJeroSsYqcsogLgw5Qsy7YBPxJBeI0nY73rK8pl5xo0yBIh6ah9X7OK65o5PiLWhHSDG8chUmr1AqXpnNdTsqaZKAiM7ThmloLdi4Ux93mFZemkDKzr54VRDvRmthl0onfWScdNOXLW/RORModGNXdabMOiAJQNI9qqRfns1h6qQ0oraK6PVQ1P10dZhMFSUDK0h2iuNE22gJW7CM3I5Gm2YHMfXWj7Xij1UUOKPxlt6KheH/AHdKfi6p9RNdTYTwinGBXV2xkpP4OQAXn5rgzp0at45SVsk4bFo63DjDE6NquumJItPJrTbH2ZTyCkotBMsHebVP1v53ObPM/2pc8HT1sbVHr2kqbUk0UsyriyN+UEvcjJmGYurbWaJULhQgJMKgWZg4ZVEstnerKJBu/K7bjG+dpWzBDbhKNZIrWfotxZGbk4gGVXDU3SxUxR5kM3TLwBKsowVa7URB60Jc9FVeCCwwQv6SZQ6TcHPt24tEXtIspy7AMNrg8wMRhwq86jqhfLazH+jkb7PMAkTafINJSkozAsXX5BTKnqI42TQVA55Lc7QEA/iCO/zVdZM8CxHaAK5WgSnwsUnsdnjL/kPi22o7LfLf2Pd4L8qlhFeRQFBsVcQnJTReb3wEYJEDsheZ8MMkkbVCbZgz1NF2xbcRtQ/UMyKKB8P8kUSSab2Djh/CiR/zZnN85ELtNl++ivaLQX/3x+MB7xaOjqCxIJV1+XOlUEZxJeG83xpG0obvYCs0rT++CnN9XF0nvcEkk7eEjpDvrLZ4b5NMZrLAEE4oJiNjhqtDKIu3x4zXcZIuM+s3vD6jd2/5fIRtyE1dSI3a6A+/JoZRKDJkA27As/PLXhmUEC/3MF4oZ4sDNjLqCvUX5GQwCavIEQW7ON03WxwU/MvwtrHBxt/iiLHOOuqgE8kjaxoxcr9LK3HkQgoUgK1Wh7eYFwFa1cw9wylIB4AtjUofHVPlr/MKcFP6bQOEE9bwu0ls9IoFEQl5R68CAmAjdgOFrq2P2SddESa/gZhM82pzcvc5LZPeQOzjv/0gpleOenTi0ywtwUzRPAolQDTaKr+ssR7vY2Hbkqiig0dY1KNxDscZ08XwOjbb7xi9YQyNzj6s9zsNx/+O0XaR+VVxnSU44GA4l0C8LKK4V2yYNFqoqSOSAlWd4eLy1VHdruWMMxQPPoDxbxTVd3DuKxSu0hdCZos3c/c5EqXt02RWiOzgrdrb+YgkMiBhXQP4BzaVLERVvmVJ+/i2tU2Q+b+F3PQIIAz46uFCE86sFlTVwd0v2PCes+i3WRihA0cjjC4hq7ba2XU/ODZLBF0QVyn7rQOvU6ZG9d55YHKXD59XMFJFNTTfnjjnmu8u+s+3uM2oRJc1xppNngqqjDes1mxqrgdKPh3yWHwY5J0M0Sv9vsigV+NVLF+ov0gTqo8WgWK66TpAZNKD0YzbM4 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: 36213660-50ee-4512-e0a5-08dc3c72da1a X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:45:16.2468 (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: xWEh7tCfxM63XT6T8v7AvNcF+N4FNRv/FBJTBtB2TpZg/cGhmGDONi0Hb+oobat9Hiu/A00+vFqjeKjHPd99ow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR83MB0436 X-Spam-Status: No, score=-10.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_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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792618645810434660 X-GMAIL-MSGID: 1792618645810434660 From: Zac Walker Date: Tue, 20 Feb 2024 18:10:08 +0100 Subject: [PATCH v2 09/13] aarch64: Add SEH to machine_function SEH is not enabled in aarch64-w64-mingw32 target yet. However, it is needed to be declared in machine_function for reusing winnt.cc. gcc/ChangeLog: * config/aarch64/aarch64.h (struct seh_frame_state): Declare SEH structure in machine_function. (GTY): Add SEH field. --- gcc/config/aarch64/aarch64.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 45e901cda64..62cc97aa8c8 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -1042,6 +1042,9 @@ struct GTY (()) aarch64_frame bool is_scs_enabled; }; +/* Private to winnt.cc. */ +struct seh_frame_state; + #ifdef hash_set_h typedef struct GTY (()) machine_function { @@ -1082,6 +1085,9 @@ typedef struct GTY (()) machine_function still exists and still fulfils its original purpose. the same register can be reused by other code. */ rtx_insn *advsimd_zero_insn; + + /* During SEH output, this is non-null. */ + struct seh_frame_state * GTY ((skip (""))) seh; } machine_function; #endif #endif From patchwork Mon Mar 4 17:46:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209663 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1578530dyc; Mon, 4 Mar 2024 09:47:17 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCVkYDaXPO01BciPOgrJSsTlF2JmapMjkeE6ZIfs9FBc8oWgKJmeacqaqwzkXSyiy3+ef1R+SZRb0YmogBGwTxGkzUSZ1w== X-Google-Smtp-Source: AGHT+IFalBWooyeRAH5Pog6MRP4I2DzWqX9mE2KFXFvxgEkR9OWdOUijBs4tT4O3JaFJjhPt6rvE X-Received: by 2002:a05:622a:1352:b0:42e:f9a5:1873 with SMTP id w18-20020a05622a135200b0042ef9a51873mr1428688qtk.58.1709574437146; Mon, 04 Mar 2024 09:47:17 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709574437; cv=pass; d=google.com; s=arc-20160816; b=fl5iaClNbXnYVYcJNRrFj0Jqeuk3Eq6CdCfZ1p2K+3sItAKcqLFBpD63OJAst/GM0S 0xR50BweOiBYF3YfZhYI9SfFXZscQkw367Y2+UgLkKO/DcW2vXN6rzXs8B9y6Z3rF1va dcgBNKklKzInuqZNDZ60acVN28H11q0W+h3YhwXSPHyuAHAKXlHnMTCcc9mHFNddE3Q8 4p+EPlQHE6RAArTGx3dQfJeUGtvt+LqBtnICt+qw4bqS5Ago8Sf6pVYYt4Agte/htciE HqPQgIqLR8Uje970RmwRmBZpD65cOrEEtY27qbbAN/l0XHiFrgSko0xYBJ5oQDldssJD eEkg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=0zoSoXotqmqAH+T/blYSad8oGjWo0b28Vb3WHuCYJdQ=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=z6RqrRsAp193ECbY0TYpgjEC9QMliJPD+PHkwvPow5FqjswomQikuKb8WlRHrSZx4Q siO9gL7MxTskVNWVxjC5EOd+oA68qb1iZlUF3ve+7yN4Bbh4DUqO4Ff6m34XOrB+ocAV XXANBlWeMQmzh1tFdSgzpQ/uC16jE0USt7en6sr0wM0WBa/+Bxt3z9UqaX3K+1OQXJVM +N1CrAkPkkpvcugZNeZiEmxfZPbzIftBbjavxjsBidxVIGqnETfeb26BG/JTILhy56MQ kT9TcBIP2JoFBndj+Yu+N9ei6WV+17Kjz8rmhEh2TqLYILhddliZuM3YPdTV+To3ZF2P w9iA==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=QHdVUINW; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id w11-20020ac857cb000000b0042ef3ce1cf2si2363798qta.72.2024.03.04.09.47.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:47:17 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=QHdVUINW; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CEF07385840B for ; Mon, 4 Mar 2024 17:47:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2132.outbound.protection.outlook.com [40.107.15.132]) by sourceware.org (Postfix) with ESMTPS id 863BB3858D28 for ; Mon, 4 Mar 2024 17:46:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 863BB3858D28 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 863BB3858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.132 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574397; cv=pass; b=gG+dEo14gtkJY+MKQl39QVx26zYzywou6e/A7jRQeBF06lig8WHI5Yl867CBMCoO31Y83poAw6hRPTRCi1G1+AWl/PFRSll+bUo7U6QAxxAA07d/F7QMhLMUltmTsNBfacAdCo3d1/7lpcn8YVXqOBr2oSU3ECrZ6ct9SYmzQ0c= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574397; c=relaxed/simple; bh=ohMbk8l4EVA6yHlWFgmtBmaB882VRqLUjh6updrw1+Y=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nwbSJKrEBVbSks9r+pE/EIAoDSdIEYw5mm30YO5rB1ZM/TOFOhlhsIGE3OjmcNctc9cMIOXiXybq/p49z8o1Q3G5pW+UJq3PClIl2g1QKQ5yCQAYpR6/UmFSr+3XQWmNBdOiDKw2EhKFlJRbTFU9DvTnVFfHCCaoGxyGJhOqJC0= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SQOspdjakEhIwTIUTXQ6qmXMnK502PlDmmO77/5Mo9x2wE9V2nGZd3bUdMrJhFCWpHJvzZ66igR1D6X+SDqJbPG/Xe35hvhM5RjesT1TnuiBKigAhNhZZ/EoLZ4fStMow3iQgkRIV0GJ0n7wfLhDRkHhjxXc84a49PA79nwMlWQBO7XILJo94a0C5yJWUEGufqhaM70YNFbYCxA/FEET7fm8MtegYSBqTEabuvh7VnoXUOutW+Aj8ZAGXwRqICyM/A3HiLnMQoSeCt8xMXzIQEL+wQt1RVc4SzMbQen12fxB0orZ3GI6lI5J4sBuenUB8NxotWtMjlbiTaCrxZo+ow== 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=0zoSoXotqmqAH+T/blYSad8oGjWo0b28Vb3WHuCYJdQ=; b=oZBcjPS+aIlJMAaQmBlM2ng52/nRU/+J9lwT+l4bX3uH8cHUYWDl8yzrOhze0ln9I1fKQEW36XGiOj97TYfgpMp9XVqIiJwfRbv/NMT3r5YAbSPR5ua0lPTnSbnaAFDZ++EgFXGv6r8z9dqILy9NFE2eu79w9Ab79gd1MqLfwnOYRhCdPqq7ErKmvTqXBXZgtld7s/hdU6n4YOTClfN6n2wehryPNeHe9d7xpqyBM2HPCa44+qkwp2ikrmXbEwnPNhlTXQJLa1/KkSepw0veP9RPB97azDFl7GOdB5oWAH1tFng1ShVCxx7pZA/j9xSwt7dgul3FT/30yg517hnkJQ== 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=0zoSoXotqmqAH+T/blYSad8oGjWo0b28Vb3WHuCYJdQ=; b=QHdVUINWNd0p+5obEfNWyImwnFbcRHLxVBQWWtDJiq4VqZ/j4T8YTHbAK6HO+8BJQfvIfB2G0+c+SP3hO3QVkVoMFFpa2tR/tFyrm22aMp12P1rhlHBrOuyittV+M8eNBCHSH3kOaUFNpXwUy+6UttWcj1pJwN66EN0tgFA21eE= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by AM7PR83MB0436.EURPRD83.prod.outlook.com (2603:10a6:20b:1bf::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.0; Mon, 4 Mar 2024 17:46:32 +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 17:46:32 +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 10/13] Rename "x86 Windows Options" to "Cygwin and MinGW Options" Thread-Topic: [PATCH v2 10/13] Rename "x86 Windows Options" to "Cygwin and MinGW Options" Thread-Index: AQHablvkVO5+IA1Df0imBGXC8x0Bew== Date: Mon, 4 Mar 2024 17:46:32 +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_|AM7PR83MB0436:EE_ x-ms-office365-filtering-correlation-id: bdfe338a-2fd3-4b0b-d0de-08dc3c730780 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LepPetdO+qIXBPHzx2q4TvSQ91FvIclK+ZNA2afKGM3RazZ0h5E1Emw+xQyEsk5bftiJNmFKHrKJfvz/CvaZ3xXENVQJ155AD4orec4vuRV9LZ5t1MmzLgJb2nvGPNx+vtm6IcjUMNpMAIuqAn/RK+gZVau0wuVnJ9fArbWYWx0hNNZTIaPO1f8PzPHx9WqefJV/7Kn/6K/mmjUlrBO/cv3r6h7LI9/3u1eTGim53v1TmV3n18+rcSuQX9S0im7CYeoDXgSDE4SKFwYgQfXxqFsMWHirlaowD0Acpp92gpwh6ncS9BNwdU/HM2KfJT9TMgsnKbyt1DJhABBkHOCE/Eq8sHwdV8fEP/DzbteUW6iH5wTs4hzHuMCCGw+kMzsUpsYqrYb9lb1s4haTgGkfu5h6U20JVBZU4gi0zHL9uD9csJ0/QPtTITgsk3pzurSG3UUx8v8rbY6OSIhOd2kg5rz7NRcD60HlefLAXB4//Kt9xGMsB/1B6Xw0tcgODhApzxWebSNS20/vrDL2ksm6StL9KoXXy+CSd1i87k5bqX8O2Q9sFkeVLoR47qr9ga0rUm4buuj907fgiu9F7Jc776QmzA1JyfudSih/LkeNdTTZpo0O/Nvd8Bg9unPcoVtodrw1gxE/Lqgl8iHOkSKuom+7I4PL5rE80YHuj6rgSc+kNpcSzTQYpVGUlkT0dXmouDPs7Gp2QN5EaYy/Ye0ZDU+DNP62w/MNYH3CsXmAujk= 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: 3zT1tLAluW1MyAGXDUUr2tqUbicTbqr04Nlc8m1UlJHbB20zHlTF6l9f59udFvD4Qmp1pZ5+3aSbHb0qK6QvUsGET3udr0GIQd9l8S1ZyQDF1IHqHMGUDzhg9AR6h/l1rtoFwTHqs5ioqvBcl6n6BsJrEGakwfFqLoD4GkieSPYHXRIGr54OZi+rD+9ut9+KcQ9bqk1KQOt0TYNphf6gMaXChECd9YDp/P8gm8V5f40xZygnU9Sa41x/Dus6p9AWL6Vjz3jrM4EwWNazBQjuyMD0Ashi00NoTQqd9HmJhf6mJWdzxfh3sQv+vAcBmsgqqXwwKNOAFLFLmfnKy5uWNUNvhDBkDKCrfLYXE4F2vYUJg4mIpeqZCI2r2FgyzawFJaO1Z/mI4w+UKrrJHXikU8P2BebUYq2UfuTzGBqikjLzNh2bzmpVVjT0XuFbfz75FBRPIUitPSBu/R/VNoOPY8Los984Ie+spre4oTbY4lvk5MIPMAk6gcUycDVaLXyq6rARlD9DnLwHEMaYmjscfaiHGqb6k1kyKsura5alAm7YufvsYLe48a1wBXfpr2mjQeiJ6eKEK0OujP1Lxb4ZZczvYQxlImVQkCarWFl3VaAQA7Jy3imE8Wu2ICG8yCGfXpgA2GjTgiU3Heitzg9AUO4AGUXihucQqG5H1WF4FN5V2z0xa1u/g1NuFnspWJmZEsL7n+7p4h4Cih2WlFa/zeTA+hDiejZ4NHMkCVTGV8Mw8cJmSFZGxgJ8J23da27fCHeRhdSoF0NjeNZqnJBm3b33Km+mzgAAbwRST/HxmW4q3Dvc/cuIRZk0xK494pAF+NGvfqRanDnbXkGYWbt3hDxa2efhEsC+sfK98s+g2xlz0FDvIa9Xk13Tuv0cDDn5L5N6JbS4VMTvh89hBJXfOUw+xN9dnwAKiZ8x5R8FGuaTZ/2FfW2lIgdimV2YHuHGcQWv2FRqU4fuZOqLk0RCGnP1b78ygICdygKj1/Xp7YMsW2vuVBsqqFNi4sZsJshUpgvobCY9pZYYeAlAfas0YRoEOb4xkeotJ2JZOvF4m7Ur71ikwjq1koMPto1CWFvoJJDcwU7YycaHXG2OZcU34CoVBxMfaqYiHAE8bGsztApOlYu5+oTtMXPFGf8VhK5UNV2ARH1pjgwJHGja7WXMAvxz+KS/XSPEsBKZmWep7FAyxLnGEiTfgm0GJhW2IPSyu7vbPYnsNnBA3gOZLMmAenpIEWDAzquR2VyjyXKsBoCRaQ8OP/Az92w5vO6s6ZGjDHCFr0+A2OLnXefktyQzIbLlxWEY6iYR9qwRuDVuPhWZP6V+2yJwycDw3/nuDOMUOTRhcCLmfxaNUP3h7SwgROctKi8sl/8QNnBHMm4j4twkwyu+0JfxuCecVqrC0QVWL4Cpq60eY3hMhxtPOJpT2whLUJwPL7o25XV/yu0dmd/Sb4V7bLXBhV00M/O1Pg6zsl8t15KDnkxSsHkklMZNKWOgc1mNgSPcscj8ResYw72xWViyjARTAcde59z86L1Zdyr89YBPIZ1FLUjmLmIr/PBAOaNGydkOOPOGwq3FzmGKSdhgOq0bZvuxmNpu3BId 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: bdfe338a-2fd3-4b0b-d0de-08dc3c730780 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:46:32.4036 (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: ycRToiC6R+O1GOp44yrPNUn0dQIwdmolu6ejkmUc8s4Sq9xnKZLHBdtZTKWMAX5vALVTEU/eSANKkyG5A6F1pQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR83MB0436 X-Spam-Status: No, score=-10.1 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792618724975386551 X-GMAIL-MSGID: 1792618724975386551 From: Zac Walker Date: Fri, 1 Mar 2024 02:17:39 +0100 Subject: [PATCH v2 10/13] Rename "x86 Windows Options" to "Cygwin and MinGW Options" Rename "x86 Windows Options" to "Cygwin and MinGW Options". It will be used also for AArch64. gcc/ChangeLog: * config/i386/mingw-w64.opt.urls: Rename options' name and regenerate option URLs. * config/lynx.opt.urls: Likewise. * config/mingw/cygming.opt.urls: Likewise. * config/mingw/mingw.opt.urls: Likewise. * doc/invoke.texi: Likewise. --- gcc/config/i386/mingw-w64.opt.urls | 2 +- gcc/config/lynx.opt.urls | 2 +- gcc/config/mingw/cygming.opt.urls | 18 +++++++++--------- gcc/config/mingw/mingw.opt.urls | 2 +- gcc/doc/invoke.texi | 12 ++++++++++-- 5 files changed, 22 insertions(+), 14 deletions(-) diff --git a/gcc/config/i386/mingw-w64.opt.urls b/gcc/config/i386/mingw-w64.opt.urls index 6bb53ef29b2..5cceba1d1a1 100644 --- a/gcc/config/i386/mingw-w64.opt.urls +++ b/gcc/config/i386/mingw-w64.opt.urls @@ -1,5 +1,5 @@ ; Autogenerated by regenerate-opt-urls.py from gcc/config/i386/mingw-w64.opt and generated HTML municode -UrlSuffix(gcc/x86-Windows-Options.html#index-municode) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-municode) diff --git a/gcc/config/lynx.opt.urls b/gcc/config/lynx.opt.urls index 63e7b9c4b33..b547138f7ff 100644 --- a/gcc/config/lynx.opt.urls +++ b/gcc/config/lynx.opt.urls @@ -1,5 +1,5 @@ ; Autogenerated by regenerate-opt-urls.py from gcc/config/lynx.opt and generated HTML mthreads -UrlSuffix(gcc/x86-Windows-Options.html#index-mthreads-1) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mthreads-1) diff --git a/gcc/config/mingw/cygming.opt.urls b/gcc/config/mingw/cygming.opt.urls index 87799befe3c..c624e22e442 100644 --- a/gcc/config/mingw/cygming.opt.urls +++ b/gcc/config/mingw/cygming.opt.urls @@ -1,30 +1,30 @@ ; Autogenerated by regenerate-opt-urls.py from gcc/config/i386/cygming.opt and generated HTML mconsole -UrlSuffix(gcc/x86-Windows-Options.html#index-mconsole) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mconsole) mdll -UrlSuffix(gcc/x86-Windows-Options.html#index-mdll) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mdll) mnop-fun-dllimport -UrlSuffix(gcc/x86-Windows-Options.html#index-mnop-fun-dllimport) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mnop-fun-dllimport) ; skipping UrlSuffix for 'mthreads' due to multiple URLs: +; duplicate: 'gcc/Cygwin-and-MinGW-Options.html#index-mthreads-1' ; duplicate: 'gcc/x86-Options.html#index-mthreads' -; duplicate: 'gcc/x86-Windows-Options.html#index-mthreads-1' mwin32 -UrlSuffix(gcc/x86-Windows-Options.html#index-mwin32) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mwin32) mwindows -UrlSuffix(gcc/x86-Windows-Options.html#index-mwindows) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mwindows) mpe-aligned-commons -UrlSuffix(gcc/x86-Windows-Options.html#index-mpe-aligned-commons) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mpe-aligned-commons) fset-stack-executable -UrlSuffix(gcc/x86-Windows-Options.html#index-fno-set-stack-executable) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-fno-set-stack-executable) fwritable-relocated-rdata -UrlSuffix(gcc/x86-Windows-Options.html#index-fno-writable-relocated-rdata) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-fno-writable-relocated-rdata) diff --git a/gcc/config/mingw/mingw.opt.urls b/gcc/config/mingw/mingw.opt.urls index 2cbbaadf310..f8ee5be6a53 100644 --- a/gcc/config/mingw/mingw.opt.urls +++ b/gcc/config/mingw/mingw.opt.urls @@ -1,7 +1,7 @@ ; Autogenerated by regenerate-opt-urls.py from gcc/config/i386/mingw.opt and generated HTML mcrtdll= -UrlSuffix(gcc/x86-Windows-Options.html#index-mcrtdll) +UrlSuffix(gcc/Cygwin-and-MinGW-Options.html#index-mcrtdll) ; skipping UrlSuffix for 'pthread' due to multiple URLs: ; duplicate: 'gcc/Link-Options.html#index-pthread-1' diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index bdf05be387d..e2e473e095f 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1493,6 +1493,8 @@ See RS/6000 and PowerPC Options. -munroll-only-small-loops -mlam=@var{choice}} @emph{x86 Windows Options} + +@emph{Cygwin and MinGW Options} @gccoptlist{-mconsole -mcrtdll=@var{library} -mdll -mnop-fun-dllimport -mthread -municode -mwin32 -mwindows -fno-set-stack-executable} @@ -20976,6 +20978,7 @@ platform. * C6X Options:: * CRIS Options:: * C-SKY Options:: +* Cygwin and MinGW Options:: * Darwin Options:: * DEC Alpha Options:: * eBPF Options:: @@ -36112,8 +36115,13 @@ positions 62:57 can be used for metadata. @node x86 Windows Options @subsection x86 Windows Options -@cindex x86 Windows Options -@cindex Windows Options for x86 + +@xref{Cygwin and MinGW Options}. + +@node Cygwin and MinGW Options +@subsection Cygwin and MinGW Options +@cindex Cygwin and MinGW Options +@cindex Options for Cygwin and MinGW These additional options are available for Microsoft Windows targets: From patchwork Mon Mar 4 17:49:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209664 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1580112dyc; Mon, 4 Mar 2024 09:50:27 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCU2aZQKlTMDz4QhPUS6wvvl8UqHVfP2ERaG1RwxINoKKnNjZP4YTLyhBYf1UONe2VKkSEEg6uWh0yL+/uYO3P2ddqOKlg== X-Google-Smtp-Source: AGHT+IGOYwvtygoDIahcBRa0A2UV2j6NtITqE52UgFtSTIq9/umK9D/bODaCNO545zBl9TszS7kH X-Received: by 2002:a0c:9b02:0:b0:68f:6f52:e7cb with SMTP id b2-20020a0c9b02000000b0068f6f52e7cbmr11583603qve.55.1709574627008; Mon, 04 Mar 2024 09:50:27 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709574626; cv=pass; d=google.com; s=arc-20160816; b=hspOLQekBLxUz9dJSukHJzoMIF5MACnr5o0tZ1Qar6gvPy1SXTIa2NZSjEmGuHc57P NXQCZF3IauTpZgX7/vdO21K+kyzn4JMQYibvtQDmoqAn4BG5Vf89ZDgJ9nOzXAf264cn ggYAl/Sv7Xmib2WWMI0aBHbqFVujNyNvrdtP1mCyBDJ/ZroHD2go2vtG2+Sd3Nroza8d pXaD7Djfzj36MeJqauUNo9QAfufn8j89LnS0DFRqZ0u3M1uwfqZqINTb5kLzgZjuhj+K l9pG2rNObYEFcYZFqZs6+IcNIIhwOJ6a0R5OKx3ws5uYoMsc7p10oNSNqqK3z7RyigR/ Q5sg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=l0SIoYCXYXMZ8SnMnHzftlJosY36aBpqRQag2g6n2Js=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=goEWgmBTzGdf7h7xE551NFqkMRN7nWfWTZ0tqQExmdE/IDUZAx3sT8YzVNnFm+xKOa chKbbeK6XdXeMc+1ZPolh3iW4amApz10ljdkrbjYuVF2gbcq1c3q3RMMD+YtcQRsUqk9 BhnjJWcnXQ3vSfeNVvwJggWA1sXZwySgpdZdLjraFJY6C88G0ff1vISITUvDZg3iA1C4 BlkcZ9LwyWbun4UTnEaRC8B8jTf7SKpqe6XynW5vJ+QwN/ECU38fwWScWUrGuMN6EvSm rQ91lK+9aN9wEIRPZN+njsjVHgT0dAGe8MeoGGnmsZGZbr5f9lUU4x7qMXlEgFTg5hqT EtHw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=JG9kSaJo; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id qn18-20020a056214571200b0069007a575f5si9970826qvb.226.2024.03.04.09.50.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:50:26 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=JG9kSaJo; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AF3953858409 for ; Mon, 4 Mar 2024 17:50:26 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2124.outbound.protection.outlook.com [40.107.15.124]) by sourceware.org (Postfix) with ESMTPS id 951173858C41 for ; Mon, 4 Mar 2024 17:49:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 951173858C41 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 951173858C41 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.124 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574586; cv=pass; b=rJ2SFAFmSz0TsAOaXzCuxFValSK9+ut9JJ22ZxYpP6ULJESzec520QUAnuB3CclN+S8i31QqnPkyAnzIR6vRa29ZvyOyQEXHCusyVGt/wk/M0OQUNQUzk5SkZgYt26vXEAuFUgaRa56tn4oA/FOCb81XKC7QOyU47gwTcI0Nytk= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574586; c=relaxed/simple; bh=VFjOlFvEFrioP30Iqx5OKphV43BX7t9FhTOYBQGTU5k=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=LjGaeUiY6X++x3fZ8vPFx5pcrZZ8TFo2mwsfiK4IMMRwPBlsZ/q0zcZL7eRirfgL9B53XJHMcLHJs+DNUVpIL0RevYl6rpv5MqB/Vtv99B1xfEVHQTcoUQK5PZp6NI8TAkJcqree7+Eaf7s+BWL/xsJpf5wlVB4+9Qrz/7TJEv4= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j9Xtuc4xmLl1akB2fx9nQXYa/14tbzFBrqWAWUMHYzG3bcASOTj46ZWRGg2K6EhzXjGjKVjeRaeDTLIXVZKlv8NbnZy2dwYHis1YtA3lQtxBHUUOTyri2YzTim92uEYMQcpHgeiT8FcXhzIdRQPZhya7BZFr2/MlwARUsBwg6T2xix8QLKMBBpGZ6oBA4OTg1EaGHNOIJ3sPs4YTtd9Lai2xIe1toZ0A5S6fLab3/W1nA0ci0hoArsB6mPMSygfwsPMmCD26aVORqRXsWWuOVjbENW5MW4rUQggvff9tkaAk913GRWAMwpPoCqB1isUN+tmuqUc447CxDLNkP7PD4Q== 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=l0SIoYCXYXMZ8SnMnHzftlJosY36aBpqRQag2g6n2Js=; b=aruJ3p1Iiy6urtahadzT+KMMqOCulQ9KN9LGAFV5LC8p1aSKQUJS1wOuDrug4LAbnfIlszRsFDxlRVXi7OKH8JFQNDrxt9Egigm0FvgRuq2qbo0g1E004akmTMD6htsBnPRj5tJpNDb49FHLxfvGxsQixfGlZb6/q5wj/DXBw2BOd/uPvGMZcD21B1zlFqHSOBXdUTOE8ilLGfOnw+AD1hJYXMieIyNkey2AUGBXlR+XI4dr2yqNR31/6N0mvA804nTqhdd3oosyP3AbuL6Af8w9qz8qcPBpDUkB/LW5Dho0o0KTcAsEOCPubHWtnjU2vrclGLUVqpSU5pPR49vkPw== 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=l0SIoYCXYXMZ8SnMnHzftlJosY36aBpqRQag2g6n2Js=; b=JG9kSaJo/hWcrWyZpYAqNEaQwl9T6rJwzSsvPVd8J+MH1j7hIhQQaSLp429y+WB5G8MvxXe9E4A1pWErU9ZEgL7XRm9V5x4yq8xzhdprl+onpuQ7Syv0u6sFIrNg6Y2uKNDapb8zJ2l2OkWWTeiCpluzaxyuxjjicTHgwpC3y+c= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by AM7PR83MB0436.EURPRD83.prod.outlook.com (2603:10a6:20b:1bf::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.0; Mon, 4 Mar 2024 17:49:40 +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 17:49:40 +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 11/13] aarch64: Build and add objects for Cygwin and MinGW for AArch64 Thread-Topic: [PATCH v2 11/13] aarch64: Build and add objects for Cygwin and MinGW for AArch64 Thread-Index: AQHablxUaDuHcHZf4kyAlWwj2odUdw== Date: Mon, 4 Mar 2024 17:49:40 +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_|AM7PR83MB0436:EE_ x-ms-office365-filtering-correlation-id: 1aa0fcd1-168d-4afd-207c-08dc3c737758 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: C/ghgg8VSy4HReeL96dyxqi2OIGANz5vz0Oebno57ZAbe4vsdWM/0L4R8SBtnRdBIpLUWHTxoVNDRIsgnyzzwfojUA25EsGfgEjxZPT+azjmkQnCDS9Pu7jJ2sUMRorUbzjHcLR8FDEqC2M+6Xhx5EeL++sxW/FLerZPfuDx56jhwCwQZUg74kao7kr3WKAtpV35pICtml1MluHQvyEVqwlDhRoowbYMlW5au8FBMl9Sd2ZHbKDaRqFN+j2xb248bFimaH3WqfCycslwdH9Hn/eK7Nn7AcC2LDNQIHLgIf1yULNTU0sRD2G+toqQkTTJG1QlOEMA/bxfsGUqyxDgNJ0PF59/AKfIR47ciHcaCGQe3PxBLvj/QzamPAuWd0jVO4i47jW8jjjQiBwZzxUQa0wLNC64BmMEF7Vz/hl+q4YskWOBFloDxDPq8TVvx7wJVI+jsA7MuZyJ/57WRvXJqCNwIqIHdcUSNYx0gvH1+tAfv3dkDKJqiVigfO3GAf/WLqxPVaORWghSMIbBnw71/7dGxJs/8JJx5c8KXPZNBT+Xt7uKaacwlupBMiNnKixpY664QRytwYHGMnUTKJpZj56t6c5/wn5ve9Pi/8LVgj3cRyUk9Qr7mIf+KQEJtP9WX4mNzcy6TJvbBNSZZvVDat4tg9N2na2JoZomvFKBvcWn54KsZvRfxO3rmOdk/EKPK1LYu0zbj/p4dN36cskrqw== 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: CWvtC9e0zRe75w2QJBHagIkpAYK+v25ELwdAFOjBzgCDRTmRoujbG0T1/J/TEXK4QeIvqZpZfwzT+EPdqMx6VZi5eBMdnzF7ozWkN097AmjVhQwz6JdyfSDLIt8u5sUZzOA8M9JQkoVJD7NVXqeippbwkLxPfBSQpYIXn+8um7Msku35TPcqQUuNfCaY4Slyg+gHo59pdbwxQlPa3Q8Jczk46oLosFlHTLV99JuI47zlK/U3PCNOGvJw5NLX8jLzR1skbqySPk5p/tnscVBAyBK8hs6Jex57V5VFTsq0h+g+PrqJw7CzBQ2UI/R117RCxUXxV33Y6t0XpBucGVSetzgApmcsyls7/WYv22/B2r24hDRdNshrQ7m7oWySQ/c1VcFCcpXfEP2P5vYZa1UfA/8V7phw9eO5140o3ys/rcZ5g6g/igTsaJqfYzbG/qvpvfT0Uqxoi1BwWLNyJiXosLDVrm0O25BLKO7plD7qOOyueXFkTXxfPdD1LUotOp/FMs5J+0URPHV0lpA77wO+GGq27K9FR3HZAD7xAF6hiS1wLuWu6B+2GunFmVSkXgnZhsGnOln4TdvHT0IxsJMbLRNrvzMHkQQn6kfh0SvglA5Rqj4kh32i4wMUUGD7lIfOhRn3KHw00ZgWzyed3viGE8cTft08NMgQcaldHdH2pw2AXNL2UOS1VJTOBtRgudBcnXCCW5FBFECTpQvgD6JgrOmICIwsrcP9M8jf9yTflkAPmMgcrNOlOPoz4ZLUgJ23SjgnPT2EmxrUcJ+6cxPUoxmEuvANBpY7aAbTspZGvuhU7gd3DDcilwQjL4MGdKYztiv7D7nbXVHdb3p94z7exn6nb5yemBpUwl1Ix0cMfeO3bK0vRSY2CxBYrG9ZLpELL5WMRv1ORjbc9askI0JagumhTQDmeVtmx4qoOyxR3jsGR8r44Ydw1rdMi9pQB3gGchmrxKaLRP0Y/PG7WoccUg8NjUzyw/i4feVq7PPnYfPBpf0Rrd8YUlkJN66BX0tOqAg6Ru+4yDazAHu48/t0aqN5tYbi2LqP4lQTl0q5AMHxxdfNaEJyQvlCOhqwZEMuEUvnB44xEDENRQbjNSlFI/GOkpxlJjAZZM0Qdbq8r1aKfLVP/eESgnL0UVZ3/vQEGELvIyZ+ILMJ6K7Byo03A/PZKuBH8mHgwej43+CO1kr9/fA0yz3QFPbFWJGTgT7IwYMsPAeb0Y6+Xzd1Jl/dV+U87QLAcgSSwtXzI7S4wEqoJcOwuFYx0phZ8iKcSgbBwYeWVOD/3VFl9r9JXPso5DNAb2+n+c3gvr78qQMzcFeIZLulVYjzDVxEcEDEtxZ02pldW+vlsN2hF9CDsPJfqh3+j3j8OqxKl2QDomUaG4/DA+BlkS/PZxIuFgBwMAFj3/RkUvvb8wd6Z1NlCSOkM4yKxZGUkau5s+vdeo1hvWhmviGsDUYTGzF3Icnu8X9nleafWDLtC/2cCl4OGCn70RMK5amxYRVMbp+M5dlE5wXiRcunUKXJJBqzwyBlZ22ppKRlIZcdkGQ90erQZHc9ltMO8Uqo9O9+6dx3LxT9/EJdaZR3VpLfofNayuxBHLVX 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: 1aa0fcd1-168d-4afd-207c-08dc3c737758 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:49:40.0525 (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: Nmovpo/1LT6iGMmyP8xvYH5UlENz0khXbFVSa8eJATCrIfTbx+8yl2v3P0ftl50nGoN/AXn88PtdMPypCVs39w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR83MB0436 X-Spam-Status: No, score=-9.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, KAM_NUMSUBJECT, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792618924193646504 X-GMAIL-MSGID: 1792618924193646504 From: Zac Walker Date: Tue, 20 Feb 2024 13:55:51 +0100 Subject: [PATCH v2 11/13] aarch64: Build and add objects for Cygwin and MinGW for AArch64 gcc/ChangeLog: * config.gcc: Build and add objects for Cygwin and MinGW. Add Cygwin and MinGW options to the target. --- gcc/config.gcc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/config.gcc b/gcc/config.gcc index 4471599454b..ed5431b0f5d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1272,6 +1272,11 @@ aarch64-*-mingw*) tm_file="${tm_file} mingw/mingw-stdint.h" tmake_file="${tmake_file} aarch64/t-aarch64" target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc" + extra_options="${extra_options} mingw/cygming.opt mingw/mingw.opt" + extra_objs="${extra_objs} winnt.o" + c_target_objs="${c_target_objs} msformat-c.o" + d_target_objs="${d_target_objs} winnt-d.o" + tmake_file="${tmake_file} mingw/t-cygming" case ${enable_threads} in "" | yes | win32) thread_file='win32' From patchwork Mon Mar 4 17:50:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209665 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1580500dyc; Mon, 4 Mar 2024 09:51:18 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCXxPzj+vXkTZAJRt2SG3B3NNgJInc9StB1+jX0pffsTslcDnpv8DJP+OJ82exSYoAlr/3GyywBiHALhRviRI5/kZ51wag== X-Google-Smtp-Source: AGHT+IFZclujSAnMNZYTtYEQ9e4c1RAklUnCN+WFHwY0ilqGWTIgMHrmk4UBsIqsCyGr4MHkPZRa X-Received: by 2002:ac8:57d5:0:b0:42e:f645:50b5 with SMTP id w21-20020ac857d5000000b0042ef64550b5mr2547585qta.30.1709574677789; Mon, 04 Mar 2024 09:51:17 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709574677; cv=pass; d=google.com; s=arc-20160816; b=YxbevlJn6iU6/AZQQAjwNoYjw/vhQv0CJ58NxBIl1Y3mQmNMB5Bxksd5k5pkTdCCw+ lIvVr0zwP4dQUdKbI1NXoZcqeK/zHISYciy4pN7Hlmk1gdWK82C/tpdNjMt/AlD8g5qu W/1HL/aqRUfvq1Zc6AO6ON9z3y0WM9LR+7Wd0t/NRipsSM0retFF2eF/1U8wmcTaKQoV J1C2M1Zb1laed2Qd44nV3ySb7v1a8+Hh6xkjq2S4vtxi2b5xA8mAAdmA0P7cef7Ktz6E tdxy2joQd3sGEGXmVCe1sNtyvwBFm2WuBhUKs5SLjzbJhtOJHSo1l6hSWbHEHzDmZw1B +w5Q== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=TQdo7MLmH2IB218Mj2rlP5CO+z+uI3RyCU/oReY8cYw=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=EcaJB/8VWw7UguMoIpwsxPECOmUVwEKI4SrERy4I1Hk2U5MiTodDOFckQI0raGANM5 iYQKC5xFAeXKbRZCQ9YA4n+uUkVkLcwlwdZj1cws0bMoZkYcHKlTh7/tVeIzAg38NsDp c+orJthkNHRRpGre9RrLn7x/ZQaUTaGjAkX4xNmKt6Hj3945Pt3tW9vtYm4+qEMUkHuC sXZ1fyKPEe9rPbPKiy54KSX2p6Njhbcwb/DpMJviG2/FIq1UKFf9Bm5K0y4VvBDQjGqq cS2GE5AgIwDqkX8+KCIuq+lKWLOy72NWT0wNdNlE9LJyaug/eJsMA3LCI6SivKHEk0FX pezA==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=MTVU4yCL; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id e10-20020ac84e4a000000b0042ec83cb926si618372qtw.622.2024.03.04.09.51.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:51:17 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=MTVU4yCL; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7F8A2385840B for ; Mon, 4 Mar 2024 17:51:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2125.outbound.protection.outlook.com [40.107.15.125]) by sourceware.org (Postfix) with ESMTPS id 107EF385840A for ; Mon, 4 Mar 2024 17:50:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 107EF385840A 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 107EF385840A Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.125 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574639; cv=pass; b=lvNv7Wyep+TdUiTW4LKQ0vyYX4TcvfIfOVavY0gdK7G/w16VOixoJxaXMUaUHo6fDMfzgABBlhKK17wXwTMQgkgO4+KBpQTFMs4SeCiTOk3XnRjX0KkmRHGbwwuyiRkNhcqSJHL2EWONs/johxBx64gIUK/b/JbbJE6Vszy376M= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574639; c=relaxed/simple; bh=lDVrNpjE3RELYidAO8Nr+qWDxsWvaQ/8y1958V/FBbg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=U7Ujpa5d/h2KJSJQmlOYni55Wnj9rqGxOO0iQpRQOiGR5mW9eb1kiws28kqGLY2Sp/3qvwI9/WWhIrN3e6WLnfwRv5ZXRQZkyLjnTfPvfYiT5JXpvV5H/WlGeDV7Hd99Fz1IeoUxIvV/Z/3TorjFN0TUI8XaHa4aZqZ9uBQ4qak= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RF4q75RY4PFtBMK9iwumJv6KaNk0PFIQE/guYyjrDsJ+BGkyQJdo13EtM8D9QwDwf3XaGknMBzPyJLdM4d0HHvECaRJiZxf7nZxVcHabFPmmIHfvhXb2+eSriMBrC9YTc1uravc0bPLJyD/OvT+9I2awooqC2t28FmKRzVQZsyQr6YXkg6gsCPnmltrZcOcEywSHBUbAeYZQArtWhmXBJIksOGUvECWsZ4+367ZG9nygDLm/iJGdT3MgNUGXddQ5uzXLFPRBd3RNaI5hDi0tJPPWMvZ3F2UZ39jccnP8mb7MlUCLUttiJRdUyJLjPMbS9gGLGO7HbgdFutyyPvNHDA== 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=TQdo7MLmH2IB218Mj2rlP5CO+z+uI3RyCU/oReY8cYw=; b=n+B9o1ivXna/N2DmuMyO5gjL2BBiJa6tGV1F9IhwfMBrC3gFjAbZEMlT4XG5g2KmEBA5uMPeNIZIeOCGnsp/WP282rT1hbVhjpiZ8IdcoY+jnJsm5GD54DHLdIToNiodpOsmwG70IrRed5/elzba1Mi8RyPVeNrNG2X5hlpBlxTnCbG2uXHhpLXt9Ma/Q6+sRG3AXP5iU8CzLgpUgaQjfuTLc2lEBMLWaFrKj4O0VDrRdLyjDqt5SZG/mLGHsuG511PxNkYpw3JIyH1ZLVI+nQvxshsTk2NEjlU7iFN2z2TzdeB4QSWKxz9VOtcRF1A5Z7GYV+E4GJT7J09Xe9TziA== 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=TQdo7MLmH2IB218Mj2rlP5CO+z+uI3RyCU/oReY8cYw=; b=MTVU4yCL8nn7sGK43Q9TsIruEAbwW0gm5xNLiohJrHAcB6m1Vnw3GL7N40dJMr5l5MSmf64usRk02HvcIYFbcwHPZ1UFzcUukr1DgT9UoxW/SbFZd9GSVhdozn08e8jCIwCaFK+JYgwX7e5QXlBeJhhTNqQ0FLvond9B1Fxk8Sk= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by AM7PR83MB0436.EURPRD83.prod.outlook.com (2603:10a6:20b:1bf::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.0; Mon, 4 Mar 2024 17:50:33 +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 17:50:33 +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 12/13] aarch64: Add aarch64-w64-mingw32 target to libatomic Thread-Topic: [PATCH v2 12/13] aarch64: Add aarch64-w64-mingw32 target to libatomic Thread-Index: AQHablx0x0XzZX9C7EmB7O97mPGt1w== Date: Mon, 4 Mar 2024 17:50:33 +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_|AM7PR83MB0436:EE_ x-ms-office365-filtering-correlation-id: d17d16af-ba01-4270-ae1d-08dc3c73971f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7o7ITObBAsU3vxig/4tBFZoo1YeVV2u0+bjEQSUIuOnyPJm32C65bvKxceIQLF1BiJKUxuX0d5cLSXICW8J0sc8PnuyVwY9jK7l30orehFxkElG1JOMC96Pm9j4JWh70gGjuUWilbDZYZ7AUAqXzv6Rk/4V1cT9JYFRbZnWCYeBeeqBG2jLEoGep7DtTyU1JnBIxT+kLKV8W3MbP+Z+V75Q9SbVPSpco0qGwN70Hz1rlJ9T3wsultHg49J/IlKQ4X1LrZ26Vt09XAg28dkPeAbKM+SFq/OetK5S6Jqo3WfK0dmcPP3MH92glNd0z/ZOgnQ1coj0PSj0RhJs/A3tzrqtgEZSrcaQ1JYRYmGnCKzMeAusAuVoGq1K3V+ashcs+vf4fUaOdG46MS8bImz57GGPbqMVU9Vsiht9GSl9gmtVSaq/Tzi8RJREbyG0pKEZ6x4t1/BR38tXvdyOF+F9OTyYk63OsQlfalwSVCKOx8minEsfLFxfvLCZeBXClSfCTcqKithN0MQ2VUrywyjuBVSZJ1dy+UbPjaV5XijE2eX99n678cTmvRvcfgik4iMlk2SdPrYGzol7mqZX5SuAvxrCIXfVSsII2RtfauZrkS0aIhpJGQf1yRnnoClwvR+iqaGFy5dne+Y9iqOaAtYO0yekWOFgT711sM3XIJKeKpsyCmt/7eeKO0ocAZGsdRWizLqkPB+PpicpFHDp5WFx0ph2Hxl1Bfxlru9Eiwtfxq8Q= 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: dh/XWNQbD3XhL9RGxfXMmel0s00dWdF5aun2hJDfg9rz+tcldEzRG0v10pLIjoQX8pfddozCi7D3s4ruOIdoQpqUUyB1hG8jQD93b4Wr2Iz8sJpQ15p5hOKHz9sRl/aaMuZ8cOOq//iotSIdmAHM41ttqR2ALzL2iS6JojUrFRM0DHhHYv5tKLIaGSjoWoVaINQJLd/nRaFyMGprM8FXjgNcO2T9+VKGjlMnEnoToGfStDPIDuFmeOwOb0YYpxk5YdbPY5TEJ3xNL+Xfr0Qj2Xd8pSw+3wSorzTTOkjVGARVo6LHbuBCKUOHIok/GBaTi9EKeAYKiHhNTzXfgcV6UVbVRn+KZzA6CFxAoFpOlmNbVWMbQ2k/JRH1dRTKURhj6aCngfuuE23ZloP2jScyHpHvmVbiBKEAuLTquKruSUYVQPKybBmI5yfuQlXgY50A6jEMMAVa/FRJLvSCA++mHiORfU+RKV4H6XavgYPN6Mk8vmH1knW8fHv5M+ZOnDfwTXO5HJwY4TYNaxzwasPxSg2HUedJ0In0HfyGhjhnb/fRcCtiLfTdFeQy3nu7j76KGAyA+EWOwk85YhGHf3uM6pl+R7KCyYDTjRP4xQiwqPWVJwSGNBOf+SsZoR5+tlOx45sMjumXDLHKYa0XJhNpxBnu8Kg1Y5+4LnPe3l2Ed5U4liGeoUdc7EyEg89bjaz3MQ1B9ArLhyvKlIbCC9Tz/Sl2UMvjw36c8JXu90Ec3aQm8LPauoDpv8rM4/fxw1n54Nxm5+ZX/kFtkOKgu7JFtlzeY/JufYau2MZa+CaHo1rWS46ihrOL2mC2DK0hFTVEoR9sDC0g4LbhxlsX0Efm7LRwjLUOj1sZjs57RWBnzj9rkWaqD0fC+V1tY4ZSpwoqSwbAwVDnBK8LMf5UVUgC1+JfHwSBG+CoVavCJf82+iDbuPEO9iWCMBFrxz7Bd3u4JaNTHXDbbwIubJSIGOjnwJCPcGGENedMSNYhfQiLpcO7mt42kQo3VgmnSLko4RXPd5WZQnLcSOOwYgE01Oe5rBThXG4vrxLcC3DHGYuPukXIawbWVPUAxk9IJktzbzqs7xTDop3I4puFMKdQl1/dMguMfOWRRPIjFycKvA9y0DIr8rgDWuIQ4g2EkJL1ksl8nCFOD57SeoY/fv/MtWKdBcZulkIS6N3W6Fms66XNQSu/EB6S1L8/RXaIcB9MdWEqm6wReLWW1fh0i04VqPLgKpk1n4wF5PyC5MThi09tb8qmbS79vXvuQcbUPPFyl+p5ZYwvdH4RaEYFZkb7660GtiqabNUUBJ4F5oNny0ty53Kqjq7SKSLJNZW31V+0r710jH5uN9CPis45UmJ814aqkSr/M80LzYLk1QyD75jPRZ+KguokT6/m5lEvYs5QFWCILD+9s/DqNxxWp6vWkxhnOCAqb+qlRPJEdmQ2ZAwMeAOYsCK7AUEl/yhTPgqs0Q8gijTGNGabLmQ7okxc5gDNVXoR4a4tND0c9RzBPiWJVBgpaDxh8/NAkqkkQ5TdjhCEhDzfzFaZYxi9yb7OCoJSEFS7ShwAG4xRuiObbqlGWBMxoKCu0BihnsFFi6uRsLfX 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: d17d16af-ba01-4270-ae1d-08dc3c73971f X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:50:33.3870 (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: Cx2D6T1WBVeUO+c0xcp4XWqi8E2pSpCtLRe1hi1dgnOijIE6M8Wokhluzbp/AdnmLIin/fvMXoEpY46DMl0Zbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR83MB0436 X-Spam-Status: No, score=-10.2 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792618977050902311 X-GMAIL-MSGID: 1792618977050902311 From: Zac Walker Date: Fri, 1 Mar 2024 02:23:45 +0100 Subject: [PATCH v2 12/13] aarch64: Add aarch64-w64-mingw32 target to libatomic libatomic/ChangeLog: * configure.tgt: Add aarch64-w64-mingw32 target. --- libatomic/configure.tgt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libatomic/configure.tgt b/libatomic/configure.tgt index 4237f283fe4..e49fd57ab41 100644 --- a/libatomic/configure.tgt +++ b/libatomic/configure.tgt @@ -44,7 +44,7 @@ case "${target_cpu}" in aarch64*) ARCH=aarch64 case "${target}" in - aarch64*-*-linux*) + aarch64*-*-linux* | aarch64-*-mingw*) if test -n "$enable_aarch64_lse"; then try_ifunc=yes fi From patchwork Mon Mar 4 17:51:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 209666 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1580807dyc; Mon, 4 Mar 2024 09:51:58 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCWbwzbnTjzPB1RSr+YHFyOZmqlYPhTCHBhaSXZNisB1iVSCOMZ5oi/bxcOvrxRHLn7zO/eeG553QTzlv9wUlZS3dN1aug== X-Google-Smtp-Source: AGHT+IGfiz8j+dKY+kYDNH6cUg/WiB6i0a6XXIAeFGhNyBfCs7rl6CvD/0v5lz6686sAIi42kR+f X-Received: by 2002:ad4:45aa:0:b0:690:7508:6670 with SMTP id y10-20020ad445aa000000b0069075086670mr3812742qvu.47.1709574717935; Mon, 04 Mar 2024 09:51:57 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709574717; cv=pass; d=google.com; s=arc-20160816; b=Fye19CqoJYFjWeYMdqKKJTG3IGA9YHw2asUH9HTsWTK+fHgiB1rZyxYMMtEFHtAFkL ZMpBsa8NGCdcv4rfgTNs8H59Ea4R0EQi3ioeYdjDCUZC71od0lKxNnFDXSwaCMnvtD8X fBmzLDD8cKwZDfNFxnw68baximaKw02hX8mdJelQL7bIyml/d6MfjVcYfChUmk6jz2CU XY+SIf3Nd4sHaW5XS6yQAEEegw2paGopv+C3Mm6kAbXk9ikvWToE6vu+zTyXs/d3IT4L iTGHct9ZsGPkruIsQpzoxXH44eas8UBwGoom9yVxaEjbdoIsvg8AjzXM5ADdfd+zVQYu 0Tbg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:msip_labels:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=jUV3Qb/B/qcOS2H5oEkTIiwV1dkgng/nlCrFaPx+rFY=; fh=+2oejmI9rg4HZgWvTrkP8qDufDd61kvBMNz7Wu2ta60=; b=H5RvSvzy4w5G8He+p2q2yKNLAx7KBuoOG648AKQ5OqSzrMuzI9zzoVtvC8kWnoBFzD vmROVlcEMntmForkzVPkyAw0iKDkqdZafZeiu0drTyqK80cqbYncZ/YwsJL/bnqa50dE dRD0bMUoo4V7xn1wBg36XgfgIkC52B4Fqs9+Aea6oZKTk/2lKkpXXuzSi95ZmEgOAM3c Nt+SkjBObt1mE0/9tjWdlVtM9d8wj0Tn9fKfvAlDE/9A7RAG/lZcFG2pCsVafiKpURgf SvW0U9vFwNr27OtxFQ6qRLwtLJAt5o9y7wpYE+wNlGsxaMnOvhF8kblcw+YVwuM4E+Vp OseQ==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=ZoH9i2R7; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gf3-20020a056214250300b0069078004e85si2321654qvb.246.2024.03.04.09.51.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:51:57 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=ZoH9i2R7; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A12823858D37 for ; Mon, 4 Mar 2024 17:51:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2119.outbound.protection.outlook.com [40.107.15.119]) by sourceware.org (Postfix) with ESMTPS id 3450F3858413 for ; Mon, 4 Mar 2024 17:51:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3450F3858413 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 3450F3858413 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.119 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574678; cv=pass; b=tDEZztOWzPRKk+81ruAMCud/oZVC8jytToGXKCrobDXZMg1Bmquyc0usmnOdOOv3bqhQK2Tu3B6d40KDCPKr7I3s/gNwI1+vkd/I1JEXkpab3WlrKx2JU1VrZ3B8KbASR+nXaoA59qP9JYxe1027sjMVZb3oip2qHJps8xodYCw= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709574678; c=relaxed/simple; bh=WpbhZYEIRLRAnSYhirwQx1YYA05AgSNQvhBF4L2Omkk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vCMdI6nVxgoS5SUfAZ4NsEyW7jDsucl7dM3qr5yi7/3D4lVX/xGjpf0i/m5G8I99aey76q2uqEGkG4BlU+bNQ1uNy8wtzqhElkoQP5I2H0NYCKjOS8F0zndzkAFKN1Uyw1XBXe/4WHh+ObY4kInj0kb1RWpFwymObNleapwTcoY= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BeLH2cGGXRLGNwG/Vo2R5GRJKxeWvt9zV/LIMgaCrz/5DJBuIVKRDKHiiTfgxgMRo3gimvSO3w2iYTuNNBp/wddfmXJtdJWGBNz++LjYcIJZvHKVGKkUe4t9D+KJ1OA8F4qvaqXmoYmxKenwNsGRU66/dwMf8g9dYyGD0ap+kfn2oWG+p2KT8CgxcD9YQfTKxblegRJFTstkw+NUWQaReyZsjlUlPiIeMaoYMqprUQE8uBWOYuGl8BOyCEUVKvQcLl7pc7Q772zj+yjBl3BsWA4pKbKfTMAfFBmE/JaE1iwwhqb6bMZj1gyjM/iwveqokcytJlcCtDCDnkGiz3YRzQ== 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=jUV3Qb/B/qcOS2H5oEkTIiwV1dkgng/nlCrFaPx+rFY=; b=bJsbr4L27IYYap+8zyTZfSDwolSRr5TbqEQ4Nx5nai3NxSPNlIOsnA6NE04fYmVFoOqBqPe/s5Cz0g0GB2X4HIsNSVgyWH8ayGvjFXiMutJIAZVftNPcVH3FVpDw99ZV0IESNITkNduF5r+XqQNUkYNsr1HtHnxLUaon3fJBGbPIjOFsJ8swqEe855jspqeFKJTRqihJR4MZgN+E/t7ur0iCrqV/jw7M07XLLUTFYEnXCjfdhUYUqMGOa7u/WM0J0dPjZWGAfRCrroeMAIOWVVvbMKGEA51rC1LyvXXsCAbvjOJ72xWzftzYOodU7f55/iAzl/+mRRfUMNz82X4gIw== 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=jUV3Qb/B/qcOS2H5oEkTIiwV1dkgng/nlCrFaPx+rFY=; b=ZoH9i2R7cWRYrt9zSfErlH59qXkoSY67v2cU6ZZJxy4aioX5Q3j9jsRC+/Az/M8wrN6u3no+q0YmwJjM6/nCr6IjOGhn8i8lXWwUdxrULzyX2fpBpacVn+KwLNqKTsIk4zIpo4koAvHm4astGJLSLju0ECynNrh3XxYFXkxQ/Vo= Received: from VI1PR83MB0431.EURPRD83.prod.outlook.com (2603:10a6:800:17f::6) by AM7PR83MB0436.EURPRD83.prod.outlook.com (2603:10a6:20b:1bf::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.0; Mon, 4 Mar 2024 17:51:13 +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 17:51:13 +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 13/13] Add aarch64-w64-mingw32 target to libgcc Thread-Topic: [PATCH v2 13/13] Add aarch64-w64-mingw32 target to libgcc Thread-Index: AQHablyMDjOQvbZ0I0m8VQ3aj6ZohA== Date: Mon, 4 Mar 2024 17:51:13 +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_|AM7PR83MB0436:EE_ x-ms-office365-filtering-correlation-id: a11bc07b-d9ec-4e8c-a627-08dc3c73af03 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AOvbRTesFfv7Mdg56wIKOhXQyyja3+SVRMbyDkNOtlhvixuyXILcPSdGGrQjG9pmomr67w24T364yxE90ospBxIoqUy19M2uwAnIx9QrB9QLKahbKUF0Y4LRuKyYpjeYEPhSKQCv8vSyJeASmcl5eRKDwRPGS9XSikDp9qOPoOzoLYeMoFAdCz32MUTESvKPNH7C6o4YgT9U5qtKKZnbjtlb7KK45K7zVQXNQGrXnP3LW0OEOaADYeobIAAhFbd9YoLIN5zNvofjQ+HebOj1jCicFKLr6GwLrCgNUn/Lg5t9cXOOjW/GHda9qGKMNZ0/mbyCHjDZDwAWhrDO1j3mKkUg3EK1QXTR8pDr3fp/jk4HeXWU6qlVoPHGeNfRZBM7H2B7lsnw+b9g1Rx9t6BenAr5jHafSHgC4x+FHP3Ovme74KSAJi5utFl3tBC6ZEfcfFciVB8w2mbhXk4080k/tAxnSYpbznGoXgnB4pZ63iI0Ke4tEE82vC9gU3fODHtEYztOCxSZvA1lpC8j/4/rF9kSmMYoV768UWTehY/y/m9VgXiFjnRgD2WUhMOc4pcjvKU8GInriTIx0XWWgD9kqgk6H6vslq0+Bt2wmShhr7aUxv+1DgWGc7141P21sMD80PO5JAfafJad5wtEiAxFi9Q0bupFyspGIkKr5WQS5QnK2KTPXpE2LiHCLn7k0+zoSeu6XALboISIvgA3G0hu4qnwSmXBLCrvXYtJZtRRSAI= 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: S74o73YpktovhHfQQCGDAC4xQ24Ls6tWpWPXtsNRFp5uzRk75lG27SCzcrWQiICQ5mjshWyd79RqLbjkwA2FuODiLIrRt/Y1/7oEKNM4tt8sRBvnGtJxWEW89mPSydJeLvBfsi3S+tU+IsGQj+WRdKX+wKpTSu0O+BnKlAIEbprMUXvpG5HI91CGqHg1Lz8T6y+KbHAHLFukhb1+jPIn9VdDzB4O1eJP7xfD8rKH2AMegAdWar+aSqO/kL55NBy5u9h49eDckbAMqXcQj/GxL8knhzec4FilTJJhI+Y1iiyukyqo59Of/kyykfTTEgOFvQdS1qbQwUToPD1tdvOj8jI5t/YC6DIm2B4c5ra8B+B85IjcO/OCz1NNfM/V2J7ZPV/MjNO2+ViJH9RDjofFbJy7UVJ6wMM8VShqyKsdF4MW8LBl6vAZX5x2FPXirGA0H64bR9CZh28gfPnrhrhD5GZXF7T0ab62E+pzf5d2qFHChPZclsAoKHNMi5vxrkwaxpCPJHWHGfgNa6u1EUa8KjW5Cb3CsC+OdiYXgwU06M54B19zk8K+UnYMLUsh7NbZD4M/Gg7tXsPHy0mydvQCoi0vbwpvCvrCaGIIl7/16i+aEZ+Ywf7+Ox6mfaZdkD2LZoVyn3IG0glVYaxDDNY7So4HBT+DlrTXLwPkrNnTHbgcGmt4Mve0ag7NTymYSZSoZrcSUeHMjLgCtFh/YX4sTP4wikTvksu3i9Q3fNDbA/F/QMAJ3sgnDktyaHPKA4wXkMOtiO71YPySTONnmHYNJnx1hz6NPu+OpwkpoZxwqZUcFaSozV8tJB+zY20ainmOqBK58W+fqsxCRkTDWsq+Rgjgdx2HJ9EcEGddLeOCfxMuOUxSgCTiJyWKcwxgIEZ6Nu9feXo/A4BEV2szhUzPLK6uz7l1xvWkKDJsmM2khek8vqjuMj/ToqCrNjfn9A9kL+NctlgQW7pYyPXMgN4uRQAgoITbwTtEshJVgE016dbQsr1SLq5GhjddmGWdutaeDpx/fjAo+UiMSE1fs2g49nizZW4glkJ05i2u5CAB3FzQtQhBxcc0e/0m+DTHdyyICUGHdT2oh7NdsVlm7ry3ZHvj2Tl+FBRadV1rh0VZ2dji3AvhkW7swQxwSYbDFkV2nAY1+cCHZ/uIN8HiSkkj29Xp6NRTg/qDeL2N4JI8tlNPsQO+67mpetcsz4S4MXgJtkEvyGhHtmEVevrAlD0N7R6llpTSf6R9yx6ZtykarttNNiR2EF+UhiBuqA1OExDFhZXuCA3UjV6E7LAlCbA9u4YAU1Y7AZX7qZJUAyXrc/kYryzIYhLlX1pd/z5d4PqBGKcTd0DHA5W9DBNTsWie40HHIRICFjDRIyMc38UYjQuRAJg0+AEIcGG+nU/WejruZQOQQ6/h+5x/3oBq0W8yukqjDEoGuhQZl4Zn3yk3pGs0mNYCHXDN2+7Hp8ERcFdNn5JM1vHJH3uXFOUSdFu75wmh73FPhML6xTXa5B5nVFVh8T03dKV7FZ34se9BYNPxQPkER0HB703IAYwNUdzwNSCdv40CdxVPHRlk7Rr2JXkHIBQq1aGpqc33qjIq3Mo2 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: a11bc07b-d9ec-4e8c-a627-08dc3c73af03 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2024 17:51:13.4777 (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: e/CiY23j4wXFliZaOtEf0h/SkOdhOcfFlG2Jv+cpxLD753XviMtKNDi+vtAYMmts8oJArQ5LjitoGLDvbO813w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR83MB0436 X-Spam-Status: No, score=-10.3 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792619019365206694 X-GMAIL-MSGID: 1792619019365206694 From: Zac Walker Date: Mon, 12 Feb 2024 15:22:47 +0100 Subject: [PATCH v2 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: 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 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