Message ID | 20220817083512.53915-1-christophe.lyon@arm.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:38f:b0:2d5:3c95:9e21 with SMTP id 15csp2507022pxh; Wed, 17 Aug 2022 01:36:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR45DEFtADdvSsL7Ei3lLYKOddWtNUKxXEjZBs6DAAWtLs957oq+MIRwrTrztX/zjgfWqhpK X-Received: by 2002:a17:906:d7a9:b0:731:2189:4f58 with SMTP id pk9-20020a170906d7a900b0073121894f58mr16298574ejb.471.1660725380400; Wed, 17 Aug 2022 01:36:20 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id oz32-20020a1709077da000b00732fca94977si12433361ejc.136.2022.08.17.01.36.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 01:36:20 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=DGA6Wq1V; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2C62D3858437 for <ouuuleilei@gmail.com>; Wed, 17 Aug 2022 08:36:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C62D3858437 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1660725379; 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=DGA6Wq1VV0zrHniEfxlXEDDNtvaGGlOIzS6kHQOdDKw6fcpXD9GI5hSouLTVNOQ4/ Ic0tTDDcGTuFkHTV7q9sHWnRk+qaqEnQzJ3uLF+JIFenH9KGWbV40plnjUKL4MUxfx i2+rwG63VEZWGAFS/KJR1f0EAf7it+H2UZIIgee8= 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 <gcc-patches@gcc.gnu.org>; 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: <gcc-patches@gcc.gnu.org> 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 <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> From: Christophe Lyon via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Christophe Lyon <christophe.lyon@arm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741396776429584917?= X-GMAIL-MSGID: =?utf-8?q?1741396776429584917?= |
Series |
arm: Define with_float to hard when target name ends with hf
|
|
Commit Message
Christophe Lyon
Aug. 17, 2022, 8:35 a.m. UTC
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 <christophe.lyon@arm.com> gcc/ * config.gcc (arm): Define with_float to hard if target name ends with 'hf'. --- gcc/config.gcc | 7 +++++++ 1 file changed, 7 insertions(+)
Comments
On 17/08/2022 09:35, Christophe Lyon via Gcc-patches wrote: > 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 <christophe.lyon@arm.com> > > 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" OK. R.
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"