From patchwork Wed Jul 24 16:00:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Carlotti X-Patchwork-Id: 1964353 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=KJU/I9rx; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=KJU/I9rx; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WTf0f0y3gz1ybY for ; Thu, 25 Jul 2024 02:02:10 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 59567386180C for ; Wed, 24 Jul 2024 16:02:08 +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-vi1eur05on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:2613::601]) by sourceware.org (Postfix) with ESMTPS id 589EE3861978 for ; Wed, 24 Jul 2024 16:00:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 589EE3861978 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 589EE3861978 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2613::601 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1721836848; cv=pass; b=NLOcIW53OCh4AYvgLStCOa/J0BqePZA37EjDhdIveSNU9Qj8WKeisF+JjQGaSizcu0/tNzC1sYKsfdGGdWJTIlNz5mkzx/RmxZaYwyfSbjFh1oR+KwbI4w420rY4zwb7mjiI1ECqalzus+VgbiGp3u/fbHh/X2OiidjqDGjFPmE= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1721836848; c=relaxed/simple; bh=bWwi7jPxAxIV+P9QGXio5KsM3ZhPfHiH+6ddOxrZPkk=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=xHsng0i/v386+rCfl2SWXLrKVa4np92kt5Mdpmn2JwUVXI8NFECFvOWUio6ZgSd7CZMtmyfGVEY7oJtq/pWc00hqS7Aalqx2aItbbELUkfYNH3PIn39knFPbGoTr9Rhu6ary0RAM3hUVLc+ZCplJXwy9NXIizifBt1coUhqj0vA= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=PgMYCY6y+t4L6aGscfTYUhuRNL3+pQZfwmcinliFLflAKafYSh3HKJ9JA5NGRBbYaYYFJbTqRjvC2Lvcjz+wPmgoxjsQUPLZcX7XevrlpUT1wqtzvxPH8/05nt+9pagJuEgoFwNpFZQTk6bUyW1hgPtpiTXK4S3qlnjMWzMmsO2SW2QbC73GYAXBhyr3HFvurXUZ7LYZVAD7+Z1E8NAPOA/bz6a7W5adjxpvZms2n6XOqZ/n9r2hOyMylNYlhfUL/OJd2HIQxPPY/P/E+xPvCk8FbJd4rxGwcLH6iDM7tnv85cfKsBv9tbDAZYzQ3ngHwAeRwXn9LibGF2uxcBwEZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=3x+Qw/nHywWAm5ZDe4g0QFcIcWLPENnLmJvfFuTqLQQ=; b=s5l2AN8KVPYjXSeBP0I62wQU3rTUddUssppInPmCDnGm83EvoT2gVRqAifAmaRNvfhKmWTUCnOP7e2u+RBWqSdyAlx0AojKGwFOQUR6JUOgQKsZaxXlw6U91hwSTwr+jmQrZvruO7F9hyrEbBQIgE5XZ4bWYvivW4rXSiM9DdgLL/gMSmJU+EGUajbFZZXUPZ3zayiqnDEVvFNNq6v1MFmEPcKBeNeLr4xJPAZPhBI+WpwkK5b5ZwTXWBPB4f/pLWRtG9lSiy2RKq66gpAJyul10Qx+5rNot5rZ0SspSf7BnKCyLjchhoow3eic/d/yekUdDRaxdcH63/HQZXS7l8Q== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3x+Qw/nHywWAm5ZDe4g0QFcIcWLPENnLmJvfFuTqLQQ=; b=KJU/I9rxVP3St52nV8AZRN4X2iNBgj3HA60rCF8aYxYQ2aGJV89DXgYWTYx4BQE1hmWlrIOkcQHXcgemEkmC8fS4RREX+B4V+IZrAicJlLr3L5/fhvVkQBP1ROPT1YEBWTjAFqoLkXX2J1fZrp/OMNjDAqKFTJa4/wXfxnAztjU= Received: from AS8PR04CA0060.eurprd04.prod.outlook.com (2603:10a6:20b:312::35) by DB9PR08MB6427.eurprd08.prod.outlook.com (2603:10a6:10:25a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16; Wed, 24 Jul 2024 16:00:43 +0000 Received: from AMS0EPF000001B7.eurprd05.prod.outlook.com (2603:10a6:20b:312:cafe::aa) by AS8PR04CA0060.outlook.office365.com (2603:10a6:20b:312::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.19 via Frontend Transport; Wed, 24 Jul 2024 16:00:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AMS0EPF000001B7.mail.protection.outlook.com (10.167.16.171) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7784.11 via Frontend Transport; Wed, 24 Jul 2024 16:00:43 +0000 Received: ("Tessian outbound 93748f77c01b:v365"); Wed, 24 Jul 2024 16:00:42 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 660de8f19f975cbe X-CR-MTA-TID: 64aa7808 Received: from L10f2ab0959a5.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 449038EA-F8DF-44FE-8C52-57A8E1DA2D52.1; Wed, 24 Jul 2024 16:00:36 +0000 Received: from EUR03-AM7-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L10f2ab0959a5.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 24 Jul 2024 16:00:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=J4IVDrOQE2G70Y17zCzJrkfERY96vkZ/jRYoMDl6JDtPbfbwF2mhVUrhj8S9Ell/CzKywwwJ2tsF6GXb/7JXceDhq8WylzjPev3CFKv3L5YHv+WKecizg8qKKGBPvuREWCb3pcQKpTZ/HrIDc2LU6X9fqXszeLiSRq8Z0epsll7AmV+dcJBYLnnF3REK/gcEG1Nu1MiarUS1nvvI0HNiR+AWus6Xc8KGXUgd/49odGsTviv8U/tC/R3r24qeqdScvb0HMsOVolLzE5GjQCcrxR036/1m/9oFmgVYrHAFQd2CiWudkdgRvP1Q3YQkCbewra7FvTkwoj1o0VOww+1dLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=3x+Qw/nHywWAm5ZDe4g0QFcIcWLPENnLmJvfFuTqLQQ=; b=kIEC57qM1GZGraSv9B3EBkKN5uDhGWprd6vheRpPts4KeCFXR+h3kapkfO1PYxAUyQ7ILLXrkxTW7lk7qIK2wv1B8clDe7oTrN5JcSeVkbUP0qQPACt2BQvjYOBqmobP5FaQYHRnoZsMiT609n2pFbW+oST4cK6zfsldh8ATIjJbK0KoCvF34GFocfQ/UQ/6+R1B87IIrT25o8/mHooob6JrdGEB/iugFhoWWWrIqFHF9NgQ9U6ZG6c5dY6fbOatrLPf7NjyfdBl+wG4OPRGOOCQhbx2I7T5jy6FZj5rT0xwv/PkoPn2/kuaQ5I0S93rC0z5s78bbY8/u1mYXI7RDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3x+Qw/nHywWAm5ZDe4g0QFcIcWLPENnLmJvfFuTqLQQ=; b=KJU/I9rxVP3St52nV8AZRN4X2iNBgj3HA60rCF8aYxYQ2aGJV89DXgYWTYx4BQE1hmWlrIOkcQHXcgemEkmC8fS4RREX+B4V+IZrAicJlLr3L5/fhvVkQBP1ROPT1YEBWTjAFqoLkXX2J1fZrp/OMNjDAqKFTJa4/wXfxnAztjU= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) by DB9PR08MB6588.eurprd08.prod.outlook.com (2603:10a6:10:25a::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Wed, 24 Jul 2024 16:00:34 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::3b48:ae45:5b79:cc29]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::3b48:ae45:5b79:cc29%3]) with mapi id 15.20.7784.017; Wed, 24 Jul 2024 16:00:34 +0000 Date: Wed, 24 Jul 2024 17:00:32 +0100 From: Andrew Carlotti To: gcc-patches@gcc.gnu.org Subject: [committed 06/11] aarch64: Decouple feature flag option storage type Message-ID: References: <262797c9-f27b-8dd0-02b2-ca15f8347d33@e124511.cambridge.arm.com> Content-Disposition: inline In-Reply-To: <262797c9-f27b-8dd0-02b2-ca15f8347d33@e124511.cambridge.arm.com> X-ClientProxiedBy: LO2P265CA0182.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a::26) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|DB9PR08MB6588:EE_|AMS0EPF000001B7:EE_|DB9PR08MB6427:EE_ X-MS-Office365-Filtering-Correlation-Id: 5da0e807-6fa5-43cc-6c6c-08dcabf9c5b3 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info-Original: uSbIc/KFg2hSJHbl0ufnuik/eiuQKK/ZbpCOM0WEQGqErJ8gN0qxIi3LCMAkMzA9XwCWW73BwY1yc2ifpO3ygoPp2r6gNxND/s/VT26nwyn7pFuqCxLuTqphDuv0fAS9x5WLda/CFhhbfFGhib5E6dF7fzfzZqgAPFAcFSnah+9t/eMNWAN36vGCxnEpsRdYqS6UA8+pnFN3yR5M9+eGTlm1T0tAMlSgd45+ztAHS6IjpMuw4UjpbmpbqCt7O9D3um94VuDdFfIu6LJzcdHTbp9uq+0hJrImZpzGY1ILOOmrCN3dtCIxD+e10GPkssml5LoPkjD3Bc6FACNa2XoYwWfUd/icZe6ftn3inHxVpcrWrzlRjUj0+s3DtTl/gh4LRt4lKRsszqiAOumCMdklNx9uBG9lasrPojeJA2Qp8U3eqeDI813SGPqtfrQSFrE9gM7nopLgneE6NsfOgdww/+hOzyhqjRWoYN/oNvmXLRVPdTTyPxlrpgB8zRCRzGWmhHT3nrR1JmTPaTPjCkgQDqXPm7Nel325NlMUPxq6n1OUT5aEDCZ2ROuuy30uxvj5Bc76cXtZpNEga83JKjAEcPU7wJlRHyA8IOPKYdHCi6J/j2dj7SH/zAB06vyQNbWeZLAtCiJqpCeX00kp24UYKa9+1BSQAAeYSOSKzIaJ3PD7xS5UOK5cAl+xBOG82A4GurLqt4hl5FcKwaoDW7o8xwN3/VBoekbXOIjGBcZUyXQ5Z9P5ULbMRoECX0XPZipbHXUEH9VthaphYD94LnMTZj6kYB22ZQUUzEXVV9CV5Eo8jC4hnVMCzpTnlw9W5WU8gMZbl6kSp6sIF1lLFRSluWwOL0aooFWhziBE/5KYvj19jN3y8tdo/xOhP4sC/9pJEQpMobxsJziILwWyV+TCiVCcsIXj2JAeetv1+kvls7QzgWyhOpCtzp1x6h9JYGCuiFcu824bpOXF5sQzMwCMSYAnR3fwASMc1nPWWC/RUZl2QiIIqjNfIA2HYlw4JGyM8J2sfdZsk2VJi6AUljsYF2eW1GLNgOzWPLjHP9ME6EKlwx02zzMMX1aqbpLmQplnjcr2yeUWcoi/U8AM0JAe9FcZDOhpJxwy1ipvZ4lx7TdpX8b3JVmFGUDrR6AE5AWqo1frZjs45QiDi9OGjTGf5anmprKIcAuvxKMocvIf2rV6fds6jzry7SD2+vSfWbH0KDFe0ZwWe4kBzgofc+RTED2S261r1PO9ximrG+upG1bYhrlRSyvRLP1BLHf4kVm0Yl8ZOogxA4aEVQa+c3INtODbzU3DM759V2XGr3hVGuvr94sDCyuxn6H7RS47z5ISFsqEG2yQGuwUjMecAlcFAg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6678.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6588 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:20b:398::8]; domain=AS8PR08MB6678.eurprd08.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF000001B7.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c44172f5-75ce-486d-6de2-08dcabf9c07f X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|1800799024|36860700013|35042699022|34020700016; X-Microsoft-Antispam-Message-Info: unlpV/smJ4ghx9YDtInAVEPIK43TGDJI/ENRMTju07jy8atCoB67SvC8FiIOdV3/0EKUFDiexuBziCbaVIOLJHAzS06ztTkrPXy+cERIgwvBEHcxtjSay/PEWv9WQAZdbi2Hz6WxsesDTDmP7d+3hgFGel+eC3Cz4Be7f9DnVBexa8LaWXFROz7dwuNPgLxEqgONIsvB6TqU1I8CXnUNCm+lOpK6DMYYyv8x+4DwVUuYw/50CMWoimEE955whtbONvaoRCH9xsZGl1ft2DzaVi6ii2/2BASksp8IfQ8KUh0hwokGfkiUcT7Kwr1cWEWHZYy9N5KSt8Wj9nD+sR+9fno2aO3gaAygsQJZEkBY+1PMaSPJSOOXirDA3/KXDr+j04kuU9bcBQ1V49sy3yFph/P0zXY69up80ti2I6I+KhfoSpMrqcKbB6CNyFk1OAb2NSS4+eZIwdzMnrcakhA5WgcZXSIoAlGIHsvj/qBHsvH8cvrQK4HaSfRQz5JjE+5S0E9nz8/ex/y31XdXJjkEWCyIaOhdOcKspae6R6/sSfLbLzflrwPgLEAaclI2Fjbrf6tpqIf+CJxA8FHLMMK9BUpSHTlGQXld0kGZJJVvHRQur1IIP2vZfF42ooR4baeE4sMxkLJ6HuBsW/Cwy0B6IOyVdDWhybevQrAPvV+foZpaV343+I0jYEJgBhCgWRWVhfcDczVELvcRiaZsx1IVLx5yZpXbd8tShBpdiqg/Yjbo/bmkK+uaNsHsRI+HDqU/oPnps5tbSkAGevERQyXitL61rqvTJzZ90YV4EOyhVTwHUfv9sM5pHvgqOAdonUQXmWSC+kH4PiqVZkDmpO1N3D46KDXMQm3xVLVJ/vklPonSqq+tRUPnsaFu1LQnBwBunFK+dXGh5A5XM6HzU/oO/l5KbDFv7L14CADCoDMvMsNAGgNiMbKFDX81WBDLNs8SiOn4sl2U75auxc8+E4aDLWRhnuZ0m6vrnjgRGuSb0xFHJG1GZR+KBidacsHBjLMccSaY4uS8GBYH3f+FcT1K/JrZU+NcUl/NkJx/hM95ir75b9KMa/cIM0xbQfCYOd/lsbZuM6QrGxnhng1X8lXZ/TaYUMBus3eFGWNfgunc/VVGuPXy+AapcHzeQ/qFxCh1XJ4UW1BBLthvN7ZcVvmqmV9KQYrm02xCsEU5tpkUXpzSNzpAwFa56kLnvKKCNB4Zafs92mcd1TUkL9DfR/HV1BvkGbzUYoFyje9F0+OYmVZ/7RTbqmU01TzmBwrPUZ/5MVpZaOl8QmAcIQ/agqnnO70z9UN5jEq1iTTMIpAqaYbtQmhj+kpjRl/1adbMfIzRrrSmj0q0aHJZGB9ux9HQC7wHQtQYHJ7toBIYNYQJKRAHN0ZWTaTDnwGG9nMe5kOK8bEtELO1Y1im+mhDhVLYGLHjPTfQNfcj7o8rSSQ4FaI4zG/Wh8hjEDrSFnhMIp6h X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230040)(82310400026)(376014)(1800799024)(36860700013)(35042699022)(34020700016); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 16:00:43.1375 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5da0e807-6fa5-43cc-6c6c-08dcabf9c5b3 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF000001B7.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6427 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_LOTSOFHASH, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY 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~incoming=patchwork.ozlabs.org@gcc.gnu.org The awk scripts that process the .opt files are relatively fragile and only handle a limited set of data types correctly. The unrecognised aarch64_feature_flags type is handled as a uint64_t, which happens to be correct for now. However, that assumption will change when we extend the mask to 128 bits. This patch changes the option members to use uint64_t types, and adds a "_0" suffix to the names (both for future extensibility, and to allow the original name to be used for the full aarch64_feature_flags mask within generator files). gcc/ChangeLog: * common/config/aarch64/aarch64-common.cc (aarch64_set_asm_isa_flags): Reorder, and add suffix to names. * config/aarch64/aarch64.h (aarch64_get_asm_isa_flags): Add "_0" suffix. (aarch64_get_isa_flags): Ditto. (aarch64_asm_isa_flags): Redefine using renamed uint64_t value. (aarch64_isa_flags): Ditto. * config/aarch64/aarch64.opt: (aarch64_asm_isa_flags): Rename to... (aarch64_asm_isa_flags_0): ...this, and change to uint64_t. (aarch64_isa_flags): Rename to... (aarch64_isa_flags_0): ...this, and change to uint64_t. diff --git a/gcc/common/config/aarch64/aarch64-common.cc b/gcc/common/config/aarch64/aarch64-common.cc index 63c50189a09d5c7c713f57e23a8172f44bf6bec5..bd0770dd0d84005701afed35d4af356380a405e9 100644 --- a/gcc/common/config/aarch64/aarch64-common.cc +++ b/gcc/common/config/aarch64/aarch64-common.cc @@ -66,15 +66,16 @@ static const struct default_options aarch_option_optimization_table[] = { OPT_LEVELS_NONE, 0, NULL, 0 } }; -/* Set OPTS->x_aarch64_asm_isa_flags to FLAGS and update - OPTS->x_aarch64_isa_flags accordingly. */ + +/* Set OPTS->x_aarch64_asm_isa_flags_0 to FLAGS and update + OPTS->x_aarch64_isa_flags_0 accordingly. */ void aarch64_set_asm_isa_flags (gcc_options *opts, aarch64_feature_flags flags) { - opts->x_aarch64_asm_isa_flags = flags; - opts->x_aarch64_isa_flags = flags; + opts->x_aarch64_asm_isa_flags_0 = flags; if (opts->x_target_flags & MASK_GENERAL_REGS_ONLY) - opts->x_aarch64_isa_flags &= ~feature_deps::get_flags_off (AARCH64_FL_FP); + flags &= ~feature_deps::get_flags_off (AARCH64_FL_FP); + opts->x_aarch64_isa_flags_0 = flags; } /* Implement TARGET_HANDLE_OPTION. diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 193f2486176b6bac372a143e2f52041c5a28ebaf..903e708565dc7830e9544813dd315f99d489cad2 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -23,13 +23,18 @@ #define GCC_AARCH64_H #define aarch64_get_asm_isa_flags(opts) \ - (aarch64_feature_flags ((opts)->x_aarch64_asm_isa_flags)) + (aarch64_feature_flags ((opts)->x_aarch64_asm_isa_flags_0)) #define aarch64_get_isa_flags(opts) \ - (aarch64_feature_flags ((opts)->x_aarch64_isa_flags)) + (aarch64_feature_flags ((opts)->x_aarch64_isa_flags_0)) /* Make these flags read-only so that all uses go via aarch64_set_asm_isa_flags. */ -#ifndef GENERATOR_FILE +#ifdef GENERATOR_FILE +#undef aarch64_asm_isa_flags +#define aarch64_asm_isa_flags (aarch64_feature_flags (aarch64_asm_isa_flags_0)) +#undef aarch64_isa_flags +#define aarch64_isa_flags (aarch64_feature_flags (aarch64_isa_flags_0)) +#else #undef aarch64_asm_isa_flags #define aarch64_asm_isa_flags (aarch64_get_asm_isa_flags (&global_options)) #undef aarch64_isa_flags diff --git a/gcc/config/aarch64/aarch64.opt b/gcc/config/aarch64/aarch64.opt index 6356c419399bd324929cd599e5a4b926b0383469..45aab49de27bdfa0fb3f67ec06c7dcf0ac242fb3 100644 --- a/gcc/config/aarch64/aarch64.opt +++ b/gcc/config/aarch64/aarch64.opt @@ -31,10 +31,10 @@ TargetVariable enum aarch64_arch selected_arch = aarch64_no_arch TargetVariable -aarch64_feature_flags aarch64_asm_isa_flags = 0 +uint64_t aarch64_asm_isa_flags_0 = 0 TargetVariable -aarch64_feature_flags aarch64_isa_flags = 0 +uint64_t aarch64_isa_flags_0 = 0 TargetVariable unsigned aarch_enable_bti = 2