From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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 To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "Richard Earnshaw (lists)" , Maxim Kuvyrkov , Radek Barton 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: 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=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: =?us-ascii?Q?j6g9op8TZP2xwpbn9OA5Kluopp6twTNPo8TSWkYNHaWsXGnlKUhn33DhbGkH?= =?us-ascii?Q?esP6ZRtRjcIVoUyaParfu1kEVZ47XyQgO4L/mgv9Qdcb7XH9VVkoF/FajYAi?= =?us-ascii?Q?B2j8s5HxHcgAOP+9C6G7mFL5ftOBJj8TNrrRGQRl6GYD2pyiBa/KrwUNs0QR?= =?us-ascii?Q?YlIFckGQXUFUi8Dm2iKYpWIiS15W6mRX7ec2cPlrWkAZHMZSXcCw7aRo1x8l?= =?us-ascii?Q?xhHBD1qicf9Q58g1MgNZVZyM1Khcv9FiCkZzdrHH/vXst/NF6ahI1d5wNN3d?= =?us-ascii?Q?THj+pIFkPhZ7Xy+e2rbeR19+lJR8wjBZZC/JB2+hx9XzKkoapUk+UvYL7thE?= =?us-ascii?Q?/xvhO9dOH9AGIsEg2xn9+8xNG2NBRZbW5K4LyFPa9W8/J2nj62ep0hamCSMq?= =?us-ascii?Q?sPKi6Csnt7Dp0rtn/m0olLvuCodVdkNobzpkbUvCET2sBklLvjFiFTJLgHjh?= =?us-ascii?Q?SLz3HAGiO0yPce+t+ut0JFAO5FSS3R9wET71wHkZU0X32yLEoejt2b0SsXd2?= =?us-ascii?Q?/q/Bxj8c9YjCeua6VXyDkrsk5bbaWF8k7Ni2/PsPqn//AJF0z5/cqLhpYm0T?= =?us-ascii?Q?RugHo0/OvH+KlGFD0OLlbGk1wPV40y/Ru+FUmZb2f0hxD/9mvie51/qaHBM2?= =?us-ascii?Q?FFeoFOescMOZsC+MtAExYqJBaNyyBVD9T4BZQRHnE/NZP963IPZPNO1tIcuG?= =?us-ascii?Q?C5oFgYxmWVcaSBrufLg8XkJeT6rBcu8reFaaz3U06/fzk1KfzB8B9LCGRSo7?= =?us-ascii?Q?sFfc67cDAjmet4ne8Uyk1L0Wd6n/R21NIavnVW7BYqTKSP5umGAEDqaoscB4?= =?us-ascii?Q?ObvKvCXrzJ+hj4i/Dlc7ivG5qqkzoF5W2DxsRMWIsrW6CaecsCcb/M7Isw4d?= =?us-ascii?Q?Q8xNbSWPPNv/7sS7TY5zNwy2ZrkZSExl53Lx+PBZhgqcm2ftsXfExgfXO9a9?= =?us-ascii?Q?BPJoUpZY755cP58wkQcsOgvy7DRAskUObFWn572QcBgZuV6vqoFZXM7cQe90?= =?us-ascii?Q?FlEjkf1bTFrw+EqlyGQQ3NuO5FWMn9kKClgv2MpR7saNMS4jdPaG7SoRcYqF?= =?us-ascii?Q?BNjwLaGkaVailryRvVsEaaGeiaHPKOVuDw72UNRhfOlU95tjfEEP3wWRT1k0?= =?us-ascii?Q?PEBxafYv+DOVou1XDxTUl6NrSysQLEaTfPCSMaueeGX24IkoQEkbmp3dQm6z?= =?us-ascii?Q?Pw8SzOzCYiZ/KAlx7PW5PMGfP4f2yGXZSYeZ0IeCUfKWwNTvJ4zbG0qn655y?= =?us-ascii?Q?O2LE9P73Bw+QUh2tiTDo8VhAx+Rf0uGHAGWg38GTbdZ7mCWvgyPwibWhI4iP?= =?us-ascii?Q?pCBr5DQxjb4Hb3D5K64jRZgjDELRGfONEhoKndA9N2rY0g=3D=3D?= 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: =?us-ascii?Q?htmoh/NBkuSc6+r1HG/VvaKi8ClwC9acMXoM6nz4HXxb0sOVYPr9WXS3yfRB?= =?us-ascii?Q?wtn2k2R1nEIlat/N12U4KJo0RgkAK9RWs6X/4LaKk/GI1wWJXO9OVreQeO1t?= =?us-ascii?Q?u5nU3fBWFfK73nTDKtWYepZK4HoHMqDG/AfjnNASAmH8HtqlrWW9xSvzzsSc?= =?us-ascii?Q?bMEw/XwAxCe2j4QkUoYTdBNnaajHXuUZaT63iJA6rQCHtQoaTphUszv0nt0f?= =?us-ascii?Q?SSEJhiR69EACLQrnEKP8+OCnfTseCvGC/aZ6RylVYj20XBzuJNiiWtE9MH3E?= =?us-ascii?Q?r++QGCcACUzyOwGmdP8mtsH6YipnkVUZjsUEjS2oejPEWGUZnEANuTRHfHOH?= =?us-ascii?Q?KLb/qYjIm6hmbanic/ly9WrNW2srLH1qkjW+aTR/Co/aE/hHQDGFjjTbUP9O?= =?us-ascii?Q?hQltmoI0yGWnqgq03tr8I0JTLRSWs6VNGGht0bTrZIrciB/k6KIPISPaDIqh?= =?us-ascii?Q?c8VJ5akhlwWQYTGpKFrUHaXrGIcufQ9UGyHZ5Ub2vZxnNZ9Itlpib2KZGYC6?= =?us-ascii?Q?85ro9M2kMyv0Uwomx0GtQwaMzuOmAFoDj+NkgHXP4eFCRqwbIFbM+g7MzdXV?= =?us-ascii?Q?ugskCC4Pqg2+6tWVF83RSaHZhuiG1qfERXXXUEv2ArDQoob85hGXdZSy+Iot?= =?us-ascii?Q?NIIa1Uqu6nldLj9pGvhJ/81E2LaiANgDbFK2as2ThZz52m5fupTQ1yALaWrC?= =?us-ascii?Q?bP0f8gyR2VQy/bUS+m53ewaL0q+ZnoSaE07bk0g8x2Xvnoxi/OnPno19G0PZ?= =?us-ascii?Q?xE+sQhOVVsqrFT4JDKdxSzzkPTM9/rQggow55k+lHBceClJv3PmJDU7yAkCB?= =?us-ascii?Q?JIqbwatB0XjI05ozzgXnVj8ywxPm7rBfYqGkWYz/ocH9xtwVvghqzb45KY73?= =?us-ascii?Q?QZ52QRHNB5hRES9U58+R8Sy2TUWZGCTkCt5YnOosMFxFM9naC62La0rx4Sqi?= =?us-ascii?Q?XX5jBrXEp0EYPRo7LMrHJS9MeqnJB7cj7fae9BsuXuFhqyoOf2uva42UErkd?= =?us-ascii?Q?y0wXr3jVRzZk4jjTV53qi6xviqFevXgpR9HmS8Kw6ButBwm8znx65tf5ONV0?= =?us-ascii?Q?90KKWoJf8PFuMgqBLzoAV+I4ebrIg3zfcU28Wn/IHpueecB7jKstYbQ6MUBX?= =?us-ascii?Q?nLH2611RPU9TgyFa+zX+oT2nDgqQTTDShtoJu2PkXU9w4YykXV9it3fdUJVd?= =?us-ascii?Q?kUmxw8V45C0v8h6kEiLg1xHyX7vzV5ZwQYJrZM5gtxh7IxCe/k1NLxXUsyOK?= =?us-ascii?Q?rovanJ0rOxwtJay29JZ1OkCoQgsPgwcAep6dVc3OyyxYNbvtt/FRcI9g4De+?= =?us-ascii?Q?XWHHQ4Su2xXCCCZmcM0xXejEAIUrQOJBG/Visp6Sd+nFg8HYLLfNMCMuMdOI?= =?us-ascii?Q?WLeKoEqLYmIr1vQBOx2uC7G9ATWrF3Khhg0ivKpjoBvS32KQfT9HOMev7faB?= =?us-ascii?Q?hf/MEUqjNmWJ/6ZUIlRdozEACoMDag1lYHK9rcZgcUk0lipAcyrdUNwxoh6R?= =?us-ascii?Q?4WKCVhNorm7ALTL3G7Fx+a+2qzW01wZIf5MEqUtcYJ2mONzR8j4Hl7/Ci7rn?= =?us-ascii?Q?n4olSatCCJpQgoeaNo5g+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 List-Id: 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(-) 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[] = =3D 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 }; =20 static const scoped_attribute_specs aarch64_gnu_attribute_table =3D 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 =3D STATIC_BUILTIN_STACK_CHECK; \ } while (0) =20 +#define SUBTARGET_ATTRIBUTE_TABLE \ + { "selectany", 0, 0, true, false, false, false, \ + mingw_handle_selectany_attribute, NULL } =20 #define SUPPORTS_ONE_ONLY 1 =20 --=20 2.25.1