Message ID | PR3PR83MB0425AC57EFB76EF206A4385AF80E2@PR3PR83MB0425.EURPRD83.prod.outlook.com |
---|---|
State | Committed |
Commit | 337632ef02a77d20ceb3dcb04751b4d4c844e23e |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 62604384AB42 for <patchwork@sourceware.org>; Thu, 18 Apr 2024 21:47:42 +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 8375A3858D33 for <gcc-patches@gcc.gnu.org>; Thu, 18 Apr 2024 21:47:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8375A3858D33 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 8375A3858D33 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=1713476838; cv=pass; b=lWPI3bdz7UOpWfekS6LRLP8X1tKpcVkdT9qDCTIyYzH8b7BT8K+pMJHsasbdl7xNuiSHMUIfZUTV6V3mMraaguE/tajvkV+Q7/WGSZpk9cAcsPxL4G+j1VgcWYHJy487JHxiBxCZTnrY9uDc+0zyTLjK4HHKN+3/lvEJFFX1LhM= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1713476838; c=relaxed/simple; bh=0eM1J76vBzK2onECXaJTMKweVgqEidx062GhPuPjfjo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=kJ6YcZsP6bt2hMiJdk9IS9YdpFQVKQpdQWp9AwX2CKLuI80OroVU9eTkTwaPuHbAg3yu5Qe4MfbYwzX9/3juIHcHrHoRHWYbTLQ1vW4t66zpF4WLfbKlTV+wFyQ/1vPAUViObi3k1qtecHZ4KBtuC2WDXqP0VIXesYvjvL/PA9g= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aN8YlRzTSgB0xZNy6JVxqU3QwfbhreDoppwhgzjUhMFLjixhMgiQtDWS1QidpNgBVltjRHZQk60K1hJkT1hRXReAveD2FZQZGz/FiDSF0MRuSWaXfAUTvfD1qbGOJv1SdyC8tl30aC/ibPQhx4+6UDlYDQowo6wm3xQdC+fuxOQi37SWWH1Qlsl7e3gLzEku0nF/63faHd6+FSOb36z/6eX+07DVBZogdLvRLkTtbC4s42e3EoOcRH9FKYaO/yIHUCM5DiSSdqbUppMT7EDuvRd1rzKkUN4/ga2l0spw/if0EFXChbpVOZ2mhlvc1CM/n8/RdvzxaZ/iOEea1lP3Jw== 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=PlUTZgRD7F1kFJakvMS17cXrr+blf9jvUzbupMrubZU=; b=nbYT/cN9jV2eV4q/bLB0GPzoVqVeYI8mytGNV+oHf4lpMu08WikVrSwT5xXEEiZEWK7d0rUZNvPVVgLn9eplRiyrmLm/0XyiMpuKrEasusVAzq7rl19Hav6NicYtJaskv0xLWgSw2TDx/QhvHomdD4Gb1ZKZI8oiM2xwKCAsqV8B1siKe//NPSvax+wc99iJHHpo+5cO3EGoQ3KOSfIEos32Hwa/c5qB3VlzWHyTtckx5Jaz3tyxAmFK3Z+2zTnbKRMKKiGTck9VHXGrrG75hXYJ93ojYFiEEytGl7BxYwABdtfim6VIx98Xhew6+gpHGfZhFxZFbTIAG4zXDYay5A== 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=PlUTZgRD7F1kFJakvMS17cXrr+blf9jvUzbupMrubZU=; b=gD3cs7VDXHllTed/JqPAYuaxkvo8nosMleQPi8CnKfa+IWs6YpU5Q5rIawBLpigkZlhQIuc9Kw8JfzsorGdLq1LwjHDEcMXTagD8Sec3t/36yILJk3cuMjmxBsFkAHtiGP92l3UWS00T4IrOAuMcjC1/T8arS2X8/hwpeRCZSdw= Received: from PR3PR83MB0425.EURPRD83.prod.outlook.com (2603:10a6:102:5f::21) by VI0PR83MB0695.EURPRD83.prod.outlook.com (2603:10a6:800:218::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.14; Thu, 18 Apr 2024 21:47:00 +0000 Received: from PR3PR83MB0425.EURPRD83.prod.outlook.com ([fe80::2303:5667:fa24:79c2]) by PR3PR83MB0425.EURPRD83.prod.outlook.com ([fe80::2303:5667:fa24:79c2%7]) with mapi id 15.20.7519.014; Thu, 18 Apr 2024 21:47:00 +0000 From: Evgeny Karpov <Evgeny.Karpov@microsoft.com> To: Evgeny Karpov <Evgeny.Karpov@microsoft.com>, "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> CC: "richard.sandiford@arm.com" <richard.sandiford@arm.com>, "Richard Earnshaw (lists)" <Richard.Earnshaw@arm.com>, Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>, Radek Barton <radek.barton@microsoft.com> Subject: [PATCH v1 4/6] aarch64: Add selectany attribute handling Thread-Topic: [PATCH v1 4/6] aarch64: Add selectany attribute handling Thread-Index: AQHakdnxy90bRy9jmEumgLgBUcKuQw== Date: Thu, 18 Apr 2024 21:46:59 +0000 Message-ID: <PR3PR83MB0425AC57EFB76EF206A4385AF80E2@PR3PR83MB0425.EURPRD83.prod.outlook.com> References: <PR3PR83MB0425E5A9911AEB3716BEC140F80E2@PR3PR83MB0425.EURPRD83.prod.outlook.com> In-Reply-To: <PR3PR83MB0425E5A9911AEB3716BEC140F80E2@PR3PR83MB0425.EURPRD83.prod.outlook.com> 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=7edbbdf7-0382-4215-8fdf-996305ff5b5e; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2024-04-18T21:26:39Z; 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: PR3PR83MB0425:EE_|VI0PR83MB0695:EE_ x-ms-office365-filtering-correlation-id: 12c0f076-6da8-4cf4-e516-08dc5ff11394 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|376005|1800799015|366007|38070700009; x-microsoft-antispam-message-info: j6g9op8TZP2xwpbn9OA5Kluopp6twTNPo8TSWkYNHaWsXGnlKUhn33DhbGkHesP6ZRtRjcIVoUyaParfu1kEVZ47XyQgO4L/mgv9Qdcb7X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aueeGX24IkoQEkbmp3dQm6zPw8SzOzCYiZ/KAlx7PW5PMGfP4f2yGXZSYeZ0IeCUfKWwNTvJ4zbG0qn655yO2LE9P73Bw+QUh2tiTDo8VhAx+Rf0uGHAGWg38GTbdZ7mCWvgyPwibWhI4iPpCBr5DQxjb4Hb3D5K64jRZgjDELRGfONEhoKndA9N2rY0g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR3PR83MB0425.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: htmoh/NBkuSc6+r1HG/VvaKi8ClwC9acMXoM6nz4HXxb0sOVYPr9WXS3yfRBwtn2k2R1nEIlat/N12U4KJo0RgkAK9RWs6X/4LaKk/GI1wWJXO9OVreQeO1tu5nU3fBWFfK73nTDKtWYepZK4HoHMqDG/AfjnNASAmH8HtqlrWW9xSvzzsScbMEw/XwAxCe2j4QkUoYTdBNnaajHXuUZaT63iJA6rQCHtQoaTphUszv0nt0fSSEJhiR69EACLQrnEKP8+OCnfTseCvGC/aZ6RylVYj20XBzuJNiiWtE9MH3Er++QGCcACUzyOwGmdP8mtsH6YipnkVUZjsUEjS2oejPEWGUZnEANuTRHfHOHKLb/qYjIm6hmbanic/ly9WrNW2srLH1qkjW+aTR/Co/aE/hHQDGFjjTbUP9OhQltmoI0yGWnqgq03tr8I0JTLRSWs6VNGGht0bTrZIrciB/k6KIPISPaDIqhc8VJ5akhlwWQYTGpKFrUHaXrGIcufQ9UGyHZ5Ub2vZxnNZ9Itlpib2KZGYC685ro9M2kMyv0Uwomx0GtQwaMzuOmAFoDj+NkgHXP4eFCRqwbIFbM+g7MzdXVugskCC4Pqg2+6tWVF83RSaHZhuiG1qfERXXXUEv2ArDQoob85hGXdZSy+IotNIIa1Uqu6nldLj9pGvhJ/81E2LaiANgDbFK2as2ThZz52m5fupTQ1yALaWrCbP0f8gyR2VQy/bUS+m53ewaL0q+ZnoSaE07bk0g8x2Xvnoxi/OnPno19G0PZxE+sQhOVVsqrFT4JDKdxSzzkPTM9/rQggow55k+lHBceClJv3PmJDU7yAkCBJIqbwatB0XjI05ozzgXnVj8ywxPm7rBfYqGkWYz/ocH9xtwVvghqzb45KY73QZ52QRHNB5hRES9U58+R8Sy2TUWZGCTkCt5YnOosMFxFM9naC62La0rx4SqiXX5jBrXEp0EYPRo7LMrHJS9MeqnJB7cj7fae9BsuXuFhqyoOf2uva42UErkdy0wXr3jVRzZk4jjTV53qi6xviqFevXgpR9HmS8Kw6ButBwm8znx65tf5ONV090KKWoJf8PFuMgqBLzoAV+I4ebrIg3zfcU28Wn/IHpueecB7jKstYbQ6MUBXnLH2611RPU9TgyFa+zX+oT2nDgqQTTDShtoJu2PkXU9w4YykXV9it3fdUJVdkUmxw8V45C0v8h6kEiLg1xHyX7vzV5ZwQYJrZM5gtxh7IxCe/k1NLxXUsyOKrovanJ0rOxwtJay29JZ1OkCoQgsPgwcAep6dVc3OyyxYNbvtt/FRcI9g4De+XWHHQ4Su2xXCCCZmcM0xXejEAIUrQOJBG/Visp6Sd+nFg8HYLLfNMCMuMdOIWLeKoEqLYmIr1vQBOx2uC7G9ATWrF3Khhg0ivKpjoBvS32KQfT9HOMev7faBhf/MEUqjNmWJ/6ZUIlRdozEACoMDag1lYHK9rcZgcUk0lipAcyrdUNwxoh6R4WKCVhNorm7ALTL3G7Fx+a+2qzW01wZIf5MEqUtcYJ2mONzR8j4Hl7/Ci7rnn4olSatCCJpQgoeaNo5g+ec6tD2yW3u+FcIhWex5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PR3PR83MB0425.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12c0f076-6da8-4cf4-e516-08dc5ff11394 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2024 21:46:59.9809 (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: rHAaOq26GtHY+IMa9sguXue827lobE9QJF6/rzJ2DNduSGgk7u3zzLFYjLl+U1WPJiq8mkoQTW6j64xCzYiJCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR83MB0695 X-Spam-Status: No, score=-11.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, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org |
Series |
Add DLL import/export implementation to AArch64
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_gcc_build--master-arm | fail | Patch failed to apply |
Commit Message
Evgeny Karpov
April 18, 2024, 9:46 p.m. UTC
This patch extends the aarch64 attributes list with the selectany attribute for the aarch64-w64-mingw32 target and reuses the mingw implementation to handle it. * config/aarch64/aarch64.cc: Extend the aarch64 attributes list. * config/aarch64/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define the selectany attribute. --- gcc/config/aarch64/aarch64.cc | 5 ++++- gcc/config/aarch64/cygming.h | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-)
Comments
Evgeny Karpov <Evgeny.Karpov@microsoft.com> writes: > This patch extends the aarch64 attributes list with the selectany > attribute for the aarch64-w64-mingw32 target and reuses the mingw > implementation to handle it. > > * config/aarch64/aarch64.cc: > Extend the aarch64 attributes list. > * config/aarch64/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): > Define the selectany attribute. Now that TARGET_ATTRIBUTE_TABLE is an array, it should in principle be possible to define the attribute in winnt.cc and so avoid duplicating the table entry. That'd be a separate clean-up though. I agree that for this series we should stick with the current approach. So the patch is ok, thanks. Richard > --- > gcc/config/aarch64/aarch64.cc | 5 ++++- > gcc/config/aarch64/cygming.h | 3 +++ > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc > index c763a8a6298..19205927430 100644 > --- a/gcc/config/aarch64/aarch64.cc > +++ b/gcc/config/aarch64/aarch64.cc > @@ -855,7 +855,10 @@ static const attribute_spec aarch64_gnu_attributes[] = > NULL }, > { "Advanced SIMD type", 1, 1, false, true, false, true, NULL, NULL }, > { "SVE type", 3, 3, false, true, false, true, NULL, NULL }, > - { "SVE sizeless type", 0, 0, false, true, false, true, NULL, NULL } > + { "SVE sizeless type", 0, 0, false, true, false, true, NULL, NULL }, > +#ifdef SUBTARGET_ATTRIBUTE_TABLE > + SUBTARGET_ATTRIBUTE_TABLE > +#endif > }; > > static const scoped_attribute_specs aarch64_gnu_attribute_table = > diff --git a/gcc/config/aarch64/cygming.h b/gcc/config/aarch64/cygming.h > index 0d048879311..76623153080 100644 > --- a/gcc/config/aarch64/cygming.h > +++ b/gcc/config/aarch64/cygming.h > @@ -154,6 +154,9 @@ still needed for compilation. */ > flag_stack_check = STATIC_BUILTIN_STACK_CHECK; \ > } while (0) > > +#define SUBTARGET_ATTRIBUTE_TABLE \ > + { "selectany", 0, 0, true, false, false, false, \ > + mingw_handle_selectany_attribute, NULL } > > #define SUPPORTS_ONE_ONLY 1
diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index c763a8a6298..19205927430 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -855,7 +855,10 @@ static const attribute_spec aarch64_gnu_attributes[] = NULL }, { "Advanced SIMD type", 1, 1, false, true, false, true, NULL, NULL }, { "SVE type", 3, 3, false, true, false, true, NULL, NULL }, - { "SVE sizeless type", 0, 0, false, true, false, true, NULL, NULL } + { "SVE sizeless type", 0, 0, false, true, false, true, NULL, NULL }, +#ifdef SUBTARGET_ATTRIBUTE_TABLE + SUBTARGET_ATTRIBUTE_TABLE +#endif }; static const scoped_attribute_specs aarch64_gnu_attribute_table = diff --git a/gcc/config/aarch64/cygming.h b/gcc/config/aarch64/cygming.h index 0d048879311..76623153080 100644 --- a/gcc/config/aarch64/cygming.h +++ b/gcc/config/aarch64/cygming.h @@ -154,6 +154,9 @@ still needed for compilation. */ flag_stack_check = STATIC_BUILTIN_STACK_CHECK; \ } while (0) +#define SUBTARGET_ATTRIBUTE_TABLE \ + { "selectany", 0, 0, true, false, false, false, \ + mingw_handle_selectany_attribute, NULL } #define SUPPORTS_ONE_ONLY 1