From patchwork Wed Aug 17 08:35:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 1667137 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=ITAEIw1w; dkim-atps=neutral Received: from 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M71Z74FZXz1ygF for ; Wed, 17 Aug 2022 18:35:57 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BE5A33858C53 for ; Wed, 17 Aug 2022 08:35:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE5A33858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1660725354; bh=LVse/1WhNW2QbpFL5SQ+AlFjisQvFc8+4d+UA/CGeHQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ITAEIw1wtIUT0KOYwh5uMWI0MT/dRppiIwB84EtlJCmilXv9tepxbk6k/YYebfBjr I2yMkrzf9zC4xRIMJoiweJ9/iMwRzUC2wNjNr90OaSx3Ba/C0OuLc9BaAdn9cvl1nu 8cFCsrA7CogMJXMkn18ZX6ogn3Z07u6F1DSOQ3Fg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70058.outbound.protection.outlook.com [40.107.7.58]) by sourceware.org (Postfix) with ESMTPS id 6AEFC3858C53 for ; Wed, 17 Aug 2022 08:35:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6AEFC3858C53 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=UI52PLgYLU2VfHdW+4XmwdKD9HkvDSPww1wwiEo8xYAzrdot0wQyU6QdDcqME+CM3vJygvNeLosnn7uBdG17koT7LRTk9VqIEjCA82EYSl/omIoQIZtzqobTuyny0p+hJIzPi2EDkJstD45xRmBd4qFvl5B0B6S7fgJMdUAIsAvb87NprVq2jXJpju958zLcq8NcB/9NGBq2W8ptpM8nAtvhfWPXLcAE9b5Bz0KuuFXMst4SXe6lDUDae5+Pi8Q8YDw+xBaTA6zprXdyIuRcPxpjNkRYkIWQITCSlcoFtnJF2RJpWkln0N7mzCqjlN76mrSGvJwpWWfIPpIykhCNfQ== 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=LVse/1WhNW2QbpFL5SQ+AlFjisQvFc8+4d+UA/CGeHQ=; b=jWqxUZCL5l9/Gjk+Nz+TVcHiwPgsjSyV617lLevaNLr9BTZFt6PDkiRdc8L5//nFMOL4erw5dDQEC/MrwrWbE4OG2G6G30bc+nNyQ5qDAdMQmjWnXIvSfiRq1oWU+lLOMhD/lz9XJkfarP1xpwHDfTpxpoqZxoYErzSnEvrya/Db4Zr23J3bK+/3LCVg24sBR/wMJwGIQNKug7mTzajnZU5Fyhb4WErYLZkxTdOfWlc3E/OzaW4KRW8QupI64P2TAzHzY6NNWhM8onbsDXU8wjkSXuZX6LsvJfhPsjqXIomfjC67gcqzkHD7QwWsME5q2PBYOuxj5eEf3sFopSGoOg== 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]) Received: from DU2P250CA0016.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::21) by VI1PR0802MB2480.eurprd08.prod.outlook.com (2603:10a6:800:ad::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.17; Wed, 17 Aug 2022 08:35:28 +0000 Received: from DBAEUR03FT065.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:231:cafe::93) by DU2P250CA0016.outlook.office365.com (2603:10a6:10:231::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.19 via Frontend Transport; Wed, 17 Aug 2022 08:35:28 +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 DBAEUR03FT065.mail.protection.outlook.com (100.127.142.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.15 via Frontend Transport; Wed, 17 Aug 2022 08:35:28 +0000 Received: ("Tessian outbound 63c09d5d38ac:v123"); Wed, 17 Aug 2022 08:35:28 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 85da00db0ffbfc6d X-CR-MTA-TID: 64aa7808 Received: from 2386410dbb6a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6EE8BC47-9ED5-4A4A-95E0-A02CF085B053.1; Wed, 17 Aug 2022 08:35:21 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 2386410dbb6a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 17 Aug 2022 08:35:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KfaX/UuzI5+O966cB8hidAUoADqajyESICyviU9zrFuDDqpY9uJjK6512Alx2dN7TA/KpCL/qRGGJhQXfbq+5uCdKq7rFfaFOWVB7IEz/FJ9R08XN6kf/Hhrn/liI22+A2sBsovVVYaDPSnPv+evVPxwsGRgcQDqzob7HVkYBXg1NW4E6/ZBujW2t+R8GhcUzMEneER1Bw1YKlBzGYQj6HzLGTmAKrV50DOMrXaeb2OzoNAQaxr2jAbBrH2pFJE6PFNbgG/la61DlBpTeygZXDidSHbso6TbXzNBABqGsF3z9UAvtcXwSzIv6yFRkzXI+2CR7I3A57bqTDxtgkyyDg== 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=LVse/1WhNW2QbpFL5SQ+AlFjisQvFc8+4d+UA/CGeHQ=; b=TXEL2xrJMbh6EnvHKpjVWF8HG1udq6PRgV4mHu4qng3Brqhi8Uu97YcNcMy+rbhmGNuqriZ1ay0t5K8tQl/Z2WlzXizBb9bPYaNcutgbH+U02cgNi5/9EASK8xISuUrTtRIvxcJoUweTwHb9uhin+lXuZvPEotDz7/eJ86zJhyhoz5C/HUi8qjnr6x27a96SQToxbAJp58E4Igc3/UlJpvW+GRcGO/+zVjEFw3TVopOlZV1dK5WPiCh0UCVgKk5Eh1F3MFkjY1X2ZEgB+ZNNDJaywjNHjFzXjbz3efQKVIhGZoqQe9t0jLdyr7kri+9aXs0NgAGExE5UHG8wICzs6g== 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 Received: from DU2PR04CA0008.eurprd04.prod.outlook.com (2603:10a6:10:3b::13) by AS1PR08MB7563.eurprd08.prod.outlook.com (2603:10a6:20b:472::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.28; Wed, 17 Aug 2022 08:35:20 +0000 Received: from DBAEUR03FT009.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:3b:cafe::ed) by DU2PR04CA0008.outlook.office365.com (2603:10a6:10:3b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.19 via Frontend Transport; Wed, 17 Aug 2022 08:35:19 +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 DBAEUR03FT009.mail.protection.outlook.com (100.127.143.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5546.15 via Frontend Transport; Wed, 17 Aug 2022 08:35:19 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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.9; Wed, 17 Aug 2022 08:35:19 +0000 Received: from e129018.arm.com (10.57.13.4) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.9 via Frontend Transport; Wed, 17 Aug 2022 08:35:18 +0000 To: Subject: [PATCH] arm: Define with_float to hard when target name ends with hf Date: Wed, 17 Aug 2022 10:35:12 +0200 Message-ID: <20220817083512.53915-1-christophe.lyon@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: b3f70525-09ff-4bb1-84e8-08da802b7037 X-MS-TrafficTypeDiagnostic: AS1PR08MB7563:EE_|DBAEUR03FT065:EE_|VI1PR0802MB2480:EE_ 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: CAw0HmIjxwW5BjfVjTYK5ShzZvgAouuOgxeGDkTDpcxC9nL4CtFxGGtiQCUkt6zrnNIw48ts6EeSyEUoDkDMFP041HiFkofZDU8ZJoxXHSiCBWvHBNXWk5W/EvJcfBMOCrjmU+osj/Eov6mHECxwZ5XV7GgvvCwk04CAroc7WZowTATJhOgT1ZYDow41UjMGhFtsblib77GR3k9GWQ3/Ll/uJ3B0N0dTsSxyzBbojfNGpWsc6+CJMIlnSUFma4LdeWC0sey8JWHL5Emms38lNsSMfAtcXUSd993bN3JfVjzy6nIpZfiuLONtKCK73XX8tw+eu/xqdcaGJnCXmCsgGmDBOuNMcsxQ6pf0p8RLNr+gzEeScTENnhaNr7FLyX11OBuXBw3/qakHtVHF/4QB6vYMuLs/VLc7UyDsvMS21FjQrAXBbeSsN4Dl+uEnO2aQFV5N16fqhXzooXwg9PmYf2JaTI4X09ZTEMkTQIvcjSPuovwVvDxbTFWPR4rOK7pDOhr+sc7Wg+YNnmoJJg0MfllqlTt/02vLvuYDWOeGvEq+EgMNjs1D47OF7Rs3n7gkxuQ4VVv8xeSAI7PiCrCfIdaS5LM4QjbroZg1/vYN/iXZ7NX8pYi7roxTvRRt84fsRAdYjJSXgicGQLyM+GpR1pvMZERHuT4m18s/3J+K/RLBKGK/GitKY+P4bEipPOVr0xzgJaQ2UTkp9HzTUO8PyRIAAblK3pQwT32WtR8NUqQqx3YOc3ozYQ5VpEnjXyhbMh3HqVh07IBK7EqU7jqdyZft9KAdg4m0DAVXVecioB7mFAb9laJMs0SZvuu28gPswssQPJXli22zeq/xt0qzJA== 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:(13230016)(4636009)(376002)(346002)(136003)(39860400002)(396003)(36840700001)(46966006)(40470700004)(186003)(7696005)(478600001)(36756003)(6666004)(86362001)(2616005)(26005)(426003)(1076003)(47076005)(41300700001)(336012)(82310400005)(40480700001)(5660300002)(2906002)(4326008)(70206006)(316002)(40460700003)(6916009)(36860700001)(8676002)(356005)(81166007)(70586007)(82740400003)(44832011)(8936002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR08MB7563 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT065.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 6525abba-6062-4236-c6ce-08da802b6b38 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Wqdx7vk6s4zI8rr/wbJk4yf2AnnC2pehLl9bmn4QhiyMZtT5GTb+nwjBCe5/Vy561U0WMD0fl+OuItYu+2Gkdo4FRXGN4SZSvp0so6FpHCFRbzip3EjXjJMDutfiQq0RTBOC1LmZCXmcqYdK2RWvg+gEhaGm0sEKPiEIYHlHgQhSzZTk1+x3+E9tcq+ye+jwbAeW6x1rqHwRDHD/NJP7dG+8bEUtDisdGYtLoDlX0dsy+cjTXqHr0YIuMPA22VZCHw7mLZPsWtb+v2I+4sgELBzuVElvy9k+AHaSlbrljggtrjS3IDckQh9rN+W+f1aaoLh3HwpxHGUeIZz06+op7/zg3TlNSCvQXf2Q1U0RMyWyTsn3mHULbmA97K9Z6A+LN5aWkRqw1WoYXLWYVbsRznW7vX5m1txOvrgwY9D8v9R2aGd+AhY7uyT8RkXHNhsj818A8NUCVTUckKqh/PmJP/7Q5M9CKPxNgzZDFT/OeJZ/cuRNhdJtorL4U6CRuCeR1zCT1+SpyXeYLgWc/ItmZ7Y8vx25xzla34BdqmYhYb6oghfd0kk9QpeTjzdwHDUpKuHXO3yJ2jzvOYbCmVcdK2L793DzYz8uAkOxilJvsql48BGEPf0/kF7GOyDkUUnBVahu4LGiMXKbhnxebvzEpC8/aUAt98xntmWUQrX36R1kprB62invGznEO9fHhiBmC1EwVXmAcNqD0h9V+/aaXw0QaiG7oQ4KKbmY4qR+u3VPV4R+4OUPFFI1vwwBrwHlrY6PLuDFBFwqLZNyl9971Y+DIN6hsqM+CX24fFsXfo8T8mBRaWYcJHgVNZmtVulH 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:(13230016)(4636009)(396003)(39860400002)(346002)(136003)(376002)(40470700004)(36840700001)(46966006)(5660300002)(2906002)(36860700001)(82310400005)(44832011)(2616005)(8936002)(186003)(26005)(1076003)(36756003)(336012)(426003)(47076005)(70586007)(41300700001)(6666004)(4326008)(81166007)(70206006)(478600001)(82740400003)(6916009)(86362001)(7696005)(316002)(40480700001)(40460700003)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2022 08:35:28.0982 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b3f70525-09ff-4bb1-84e8-08da802b7037 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: DBAEUR03FT065.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2480 X-Spam-Status: No, score=-12.7 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" On arm, the --with-float= configure option is used to define include files search path (among other things). However, when targeting arm-linux-gnueabihf, one would expect to automatically default to the hard-float ABI, but this is not the case. As a consequence, GCC bootstrap fails on an arm-linux-gnueabihf target if --with-float=hard is not used. This patch checks if the target name ends with 'hf' and defines with_float to hard if not already defined. This is achieved in gcc/config.gcc, just before selecting the default CPU depending on the $with_float value. 2022-08-17 Christophe Lyon gcc/ * config.gcc (arm): Define with_float to hard if target name ends with 'hf'. --- gcc/config.gcc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/config.gcc b/gcc/config.gcc index 4e3b15bb5e9..02f58970db0 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1314,6 +1314,13 @@ arm*-*-linux-* | arm*-*-uclinuxfdpiceabi) tm_file="$tm_file arm/uclinuxfdpiceabi.h" ;; esac + # Define with_float to "hard" if not already defined and + # target name ends with "hf" + case $target:$with_float in + arm*-*-*hf:) + with_float=hard + ;; + esac # Generation of floating-point instructions requires at least ARMv5te. if [ "$with_float" = "hard" -o "$with_float" = "softfp" ] ; then target_cpu_cname="arm10e"