From patchwork Thu Dec 7 16:46:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 1873301 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=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=s1bzTKOq; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=s1bzTKOq; 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 4SmKtj4YrZz23mf for ; Fri, 8 Dec 2023 03:47:09 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A83EB385DC1D for ; Thu, 7 Dec 2023 16:47:07 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2083.outbound.protection.outlook.com [40.107.13.83]) by sourceware.org (Postfix) with ESMTPS id 88613384F98A for ; Thu, 7 Dec 2023 16:46:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 88613384F98A 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 88613384F98A Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.13.83 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1701967615; cv=pass; b=wepHKRNkqFpuTg97dtZWfGzn7FCwW7agzKV/losygrg6Z+ByUX+lbHUVS1TOEWB8FcblFxPj0WlWw0+6JK4NnyxCIZh4EafIL0yTIPGedNd5XC/gwvX26iEmthen7V1AM8RWKldG07oQmvMOX+WddrbCLqaePgnD2jMqiWif3yQ= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1701967615; c=relaxed/simple; bh=tyc0POcP7QeeIPb0pew4GntytGWBi+tghl1sWyMpv7E=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=PACmyQA1tUnKXILz96kAYiR11pGI4DydUzP08QJotiDUKsEPzWimEadiv/BEuhWqO1l1zkcRxjUv7dV5Qpq2z/cqg3j2XliztCOTOyOh7kWjHDXuvj7vNZkQOwC/b3RUDTsJBTTKgne2ZifNDnOYDEJRVFP6XYtwt5i3KIksJjY= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=JW9G2gzQVZUK0dB69cusZkcCukulmJDhUQeYbbKsSf8kj4izoAuKSItjEsVhVGM2Sx87irlanTSq/pJuX5iY9GVoGttxNs1MIK9/49fdTg+grJIw3Nm4p/0HDOPj4d3BSMbjnMNqxl8fUTgGjdfhuI4Qldr/px4kAfzXOlf/AGJss7VcfHk3e6MkdLrh7Sy+yUYgKHZDaT8ZTEx4hCR6nfAmuHP3TfyRQJyxFzK64/s9vzXAdvF+3VA6tDUOK5YjAOfpX/H/YGeSsZETUrmcvetySrFEGTpLocn6UlXlCmgeVm1rl9i4eLBZG0tsjW3747/hC56CwUINNXUmDKE5tQ== ARC-Message-Signature: i=2; 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=whXFQW9EhJdFpRq2rBfw8qw0RbrchhW15zldIc8ONos=; b=P3vzylDTkSiAq2/2yIPhKv4u+anO+1PDLOTTQckH98rOoalWnobpBjjemLD8/mwb2emmk/NzTCyJQK2EFmedbLP0silB5HJyPNoQ7N9SSd5VtBSczScR71LvJRDXm3MXerLYK0pO7v+PwPY4UtEAtMBGbBIY/cSEa56RYVKyw7Ns2jD8CM+Wi55OwSzkQz8Y63AlZFW3F7qgfVI+EvQfrtfMfzJE+VJOV2D9hx/oo3DTwEWejS0Zt7sCTHSTGRDagBwUTnQW35v9Bde7VTfxefpSJpQvjHUqctNeaigPmWiHB6a1AOEGjRw7Cdk3+S/COHcx97P77zceq7SaoVW/Wg== 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=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=whXFQW9EhJdFpRq2rBfw8qw0RbrchhW15zldIc8ONos=; b=s1bzTKOqKemqIs3uO24GBAc5vCIvbj7Snia1gH34UTBnoQu3jLLky1nkNYSsIYK/XOK0ovdC76cMv5XK+jmkP7089rYUyr+Dw7sgtX03ZrPiubWFLnRV7TVYFOecsfZ7mS5CmPAGTV5TYU4hXeIuZFL34KIXOEATDrzICV/O1WE= Received: from AS9PR05CA0082.eurprd05.prod.outlook.com (2603:10a6:20b:499::30) by PAVPR08MB9627.eurprd08.prod.outlook.com (2603:10a6:102:31b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.26; Thu, 7 Dec 2023 16:46:50 +0000 Received: from AM2PEPF0001C717.eurprd05.prod.outlook.com (2603:10a6:20b:499:cafe::d7) by AS9PR05CA0082.outlook.office365.com (2603:10a6:20b:499::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.25 via Frontend Transport; Thu, 7 Dec 2023 16:46:49 +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=armh.onmicrosoft.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 AM2PEPF0001C717.mail.protection.outlook.com (10.167.16.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.20 via Frontend Transport; Thu, 7 Dec 2023 16:46:49 +0000 Received: ("Tessian outbound e243565b0037:v228"); Thu, 07 Dec 2023 16:46:49 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4b60c0d8db6c0b75 X-CR-MTA-TID: 64aa7808 Received: from 161c77e66666.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id BF93DDAE-2DC9-4C60-9123-09FF02F29B28.1; Thu, 07 Dec 2023 16:46:42 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 161c77e66666.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 07 Dec 2023 16:46:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V+XM8+gWM3oh4wh/JRIO/WYC6W71bQ8Q1rJdg6PQT6XBj1u8VmEctZf04mGSzQ3+06bKYTUp9X4ltFmUXDTAYAMJANAM7uSQn20UNlc/qYBPb1EU4V0LfbPEo12+ldnygTa2S48GmxJy4/w/IqWU8m/cMmv3082YC7VAWxwCiG/CZHmNxQWVvWV8JDiWFmksFTB2YIF0vxElHGEpbB9nRuXyMZ2i9Wxt9Qddfm4pvApMdGUH2nkkrdsBr9RaYYQ8CsfYV7ZD1ibcSMDlCt21DpQdvGAI5couFZc9zspRxgynEqxgNmlPayz7SbSsj7bslW2nfDsfKZ+p7zZrdCt29g== 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=whXFQW9EhJdFpRq2rBfw8qw0RbrchhW15zldIc8ONos=; b=kJzqP2HBmzWeXJG/vxyod8VW2GAYo4LpF7iGzLyV5OpklzKGE/CWS6IQ2SAX7Nuqa37pinaMwYSUV5AgryNoxMz1W8IotHA4Hslr05jLypT8DJrGPTWDUCHU81EWVSlcqPBU2uPHOHvYhoMz3IRa/mk2zhLb6AD06H5CZv85bBoc2jYe0kQ3RRgvmmGUwdp83Q+3MijlDNQFkoB/4zjfqGfFgH3ErNP+ErmNvdbe072+vootcE4NPMVfRh3C2uo5D7itwtS3A2+a/AQjVJDeNUnldeHiEHv+kJYf8RsQlb+VRQG/PxTHqa7y+eRCvL7SoObYi/vRTCQ3STNk/uXV6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=whXFQW9EhJdFpRq2rBfw8qw0RbrchhW15zldIc8ONos=; b=s1bzTKOqKemqIs3uO24GBAc5vCIvbj7Snia1gH34UTBnoQu3jLLky1nkNYSsIYK/XOK0ovdC76cMv5XK+jmkP7089rYUyr+Dw7sgtX03ZrPiubWFLnRV7TVYFOecsfZ7mS5CmPAGTV5TYU4hXeIuZFL34KIXOEATDrzICV/O1WE= Received: from AS4P190CA0040.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d1::20) by DBBPR08MB5882.eurprd08.prod.outlook.com (2603:10a6:10:200::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.27; Thu, 7 Dec 2023 16:46:41 +0000 Received: from AM4PEPF00027A6B.eurprd04.prod.outlook.com (2603:10a6:20b:5d1:cafe::ae) by AS4P190CA0040.outlook.office365.com (2603:10a6:20b:5d1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.34 via Frontend Transport; Thu, 7 Dec 2023 16:46:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM4PEPF00027A6B.mail.protection.outlook.com (10.167.16.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7068.24 via Frontend Transport; Thu, 7 Dec 2023 16:46:41 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 7 Dec 2023 16:46:39 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 7 Dec 2023 16:46:39 +0000 Received: from armchair.cambridge.arm.com (10.2.80.71) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.32 via Frontend Transport; Thu, 7 Dec 2023 16:46:39 +0000 From: Szabolcs Nagy To: Subject: [PATCH 2/4] libgcc: aarch64: Configure check for __getauxval Date: Thu, 7 Dec 2023 16:46:38 +0000 Message-ID: <745fcb769f068bb7a99513197f64955e02e79558.1701967183.git.szabolcs.nagy@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM4PEPF00027A6B:EE_|DBBPR08MB5882:EE_|AM2PEPF0001C717:EE_|PAVPR08MB9627:EE_ X-MS-Office365-Filtering-Correlation-Id: fba2d3fe-39ca-45bd-96f2-08dbf7441bc0 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: QCxuqe9IuGsEvGONxXG0Nk7gXWm8LcgPAH+HOHdXKWq+Gn73Mq123ju83tVDqfyv7DznmEZicQtQDwhBFFZRZstp8xrHc0ljImcu3EHGGQZidHW6TSwBEiyHoPqIHzW6k7tmkWVvm2JUKElx7VTv5Wy7FrFGJhomy7ZvzOMoH+jvsOcakMe/USnP1z2zfwMfKD+4jxsJAzhhYHyaJGkyPYuk55W/Kb+wIGK4ISukIg8+QSivAys/FKA+mI8aNprqh6uQquo48CvJx0MDsFr39Slf6tZuTCfLJvOXT0ItgBw1MLHUz88C/XizCnG2RhY3OagO7agI8Ru20qrVlZfKe15Kj46Lg7Mz2t5imgRebCJZf4QE7NassYmPLkwgvS9Vjo2fm5A7A+lQ5heQYHXGNkfmdqrV7vyl17dAeIXI+qGWMCWV0F1i/IHvCQYuTjfd47ZUsQ/JPew4shtTPYo8NIUq37PiTOJCwpdunkfV9cVilrYH9Vj69mjbkud4xFeLWHkuJvfXcbByCWIIiAneRwHIyeAeMaD+iiOBoRfcPnlCIyTKSldm9tx2qSYdxEkYbpBsw0BM7iDZ7wfVd6N5jUsB6pez0MZINmQhGStl45ni/ulu8ijK3r8YihrgBpI+AkzJtYUJqlNIsOBRaQT8HlUB8PnEpMPpee0s1xAtoOuwF5Z8RH9MTIaXt4fyF8KSlW+m+NaOOOHqURkIbH8uvHnhP+aOMaAlz2y31RQVmq45sXkDgkqnMXIz0KXwyxBTS+4B7OZBJwceU6hX7pXZoQ== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(346002)(136003)(396003)(376002)(230922051799003)(64100799003)(82310400011)(451199024)(1800799012)(186009)(36840700001)(40470700004)(46966006)(2906002)(8676002)(8936002)(5660300002)(40480700001)(316002)(44832011)(82740400003)(81166007)(40460700003)(356005)(66899024)(70586007)(6916009)(70206006)(86362001)(36860700001)(478600001)(41300700001)(36756003)(7696005)(336012)(426003)(47076005)(26005)(2616005)(83380400001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB5882 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM2PEPF0001C717.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 74d4e5e8-1eb8-47cc-b36a-08dbf74416b1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NdggVDeHKiK0pbOTsM9PtNalfsROKw7bl/1ghuZuO2O2rVrkJGbFIZFlbYlpclKxxQHhAP72wBv3URpng+gO5Apxev4Xn0LfjBzi1r+0Vi+DuV6tZAnX8UCzF76zoRFn4KAZ66K1kjwz24X6jDPj8W9xnETFp2eFuD18RR9ysOTSvSwS+9C8LCsnl3IVFnoVF+Cs3WrvUhrs+nvKVgmh0HFL3yj87KDmgeYgW8n1+iIZyXoTYn0hE3OcqvTk6mOr58ueZL0FeDthtw8ghPRpHUb7ALPm9ZJWc45Qnc3dUMilm0Zs4LeWhyTytSddkVKkO1veQoZyol1Pdrck0XxkPXDEYLTB2Ev7Zd84RutPbJMDxBatQyARg06oy/gQSez+i74dyJEV44rhh3xesvM2KrLH1PzFGNoXxoav1bpG4m5AIbDHTv8RSKG86NIfFTdwKaaYgvfHcwsYhJiDG/yoaCHBPZcaDVd6fXa1WXjCw7A2EcwkCkAqvmLGw6GUspTxS24NAUg509zrxVpCmf0zWmD45KKXpw0nSQjVV6/xjCcO3MRX3cDv6znYCiDK3xURBXD8UcYcU2xcdFID2bVQ2areRzHSSL/PP8jZJyHc7zeWnp0zggNLH4R9kHo2x1P8Lq3g7NpRJQi2JCv6OujqUL8x1qmri7yXf0DJcxjfZFjSOGnmhaeDcZ4qqIM+TyICRGKvm0ZTLHXCw8FSVIGXkvc/Y4LWFWvEYYMtYh0CVkKeMtgAui2OAxVGxfcvm6g1 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:(13230031)(4636009)(396003)(39860400002)(346002)(376002)(136003)(230922051799003)(64100799003)(82310400011)(1800799012)(451199024)(186009)(36840700001)(40470700004)(46966006)(2616005)(40480700001)(47076005)(66899024)(36860700001)(40460700003)(82740400003)(81166007)(5660300002)(6916009)(70586007)(8676002)(8936002)(70206006)(36756003)(316002)(83380400001)(86362001)(2906002)(7696005)(478600001)(41300700001)(44832011)(426003)(336012)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2023 16:46:49.7875 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fba2d3fe-39ca-45bd-96f2-08dbf7441bc0 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: AM2PEPF0001C717.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9627 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, 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 Add configure check for the __getauxval ABI symbol, which is always available on aarch64 glibc, and may be available on other linux C runtimes. For now only enabled on glibc, others have to override it target_configargs=libgcc_cv_have___getauxval=yes This is deliberately obscure as it should be auto detected, ideally via a feature test macro in unistd.h (link time detection is not possible since the libc may not be installed at libgcc build time), but currently there is no such feature test mechanism. Without __getauxval, libgcc cannot do runtime CPU feature detection and has to assume only the build time known features are available. libgcc/ChangeLog: * config.in: Undef HAVE___GETAUXVAL. * configure: Regenerate. * configure.ac: Check for __getauxval. --- libgcc/config.in | 3 +++ libgcc/configure | 26 ++++++++++++++++++++++++++ libgcc/configure.ac | 19 +++++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/libgcc/config.in b/libgcc/config.in index 5dd96cdf648..441d4d39b95 100644 --- a/libgcc/config.in +++ b/libgcc/config.in @@ -16,6 +16,9 @@ /* Define to 1 if the assembler supports .variant_pcs. */ #undef HAVE_AS_VARIANT_PCS +/* Define to 1 if __getauxval is available. */ +#undef HAVE___GETAUXVAL + /* Define to 1 if the target assembler supports thread-local storage. */ #undef HAVE_CC_TLS diff --git a/libgcc/configure b/libgcc/configure index 571e3437701..746d29587d5 100755 --- a/libgcc/configure +++ b/libgcc/configure @@ -5657,6 +5657,32 @@ $as_echo "#define HAVE_AS_VARIANT_PCS 1" >>confdefs.h ;; esac +# Check __getauxval ABI symbol for CPU feature detection. +case ${target} in +aarch64*-linux-*) + # No link check because the libc may not be present. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __getauxval" >&5 +$as_echo_n "checking for __getauxval... " >&6; } +if ${libgcc_cv_have___getauxval+:} false; then : + $as_echo_n "(cached) " >&6 +else + case ${target} in + *-linux-gnu*) + libgcc_cv_have___getauxval=yes + ;; + *) + libgcc_cv_have___getauxval=no + esac +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_have___getauxval" >&5 +$as_echo "$libgcc_cv_have___getauxval" >&6; } + if test x$libgcc_cv_have___getauxval = xyes; then + +$as_echo "#define HAVE___GETAUXVAL 1" >>confdefs.h + + fi +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5 $as_echo_n "checking for init priority support... " >&6; } if ${libgcc_cv_init_priority+:} false; then : diff --git a/libgcc/configure.ac b/libgcc/configure.ac index abc398c91e4..64b45ae1423 100644 --- a/libgcc/configure.ac +++ b/libgcc/configure.ac @@ -665,6 +665,25 @@ aarch64*-*-*) esac]) LIBGCC_CHECK_AS_VARIANT_PCS +# Check __getauxval ABI symbol for CPU feature detection. +case ${target} in +aarch64*-linux-*) + # No link check because the libc may not be present. + AC_CACHE_CHECK([for __getauxval], + [libgcc_cv_have___getauxval], + [case ${target} in + *-linux-gnu*) + libgcc_cv_have___getauxval=yes + ;; + *) + libgcc_cv_have___getauxval=no + esac]) + if test x$libgcc_cv_have___getauxval = xyes; then + AC_DEFINE(HAVE___GETAUXVAL, 1, + [Define to 1 if __getauxval is available.]) + fi +esac + dnl Check if as supports RTM instructions. AC_CACHE_CHECK(for init priority support, libgcc_cv_init_priority, [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,