From patchwork Tue Dec 1 13:51:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Corallo X-Patchwork-Id: 1408847 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: 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=DH3UREz6; 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Clk6w2JgHz9sVH for ; Wed, 2 Dec 2020 00:52:06 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67CAF39450E7; Tue, 1 Dec 2020 13:52:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67CAF39450E7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1606830723; bh=r4KDvojIgHDkkJb6MrCaOFi+PJpb2G6ExotgNfdpuv4=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=DH3UREz66vaelynA4fhybwHHnrT10V/oZEFT2Es/wV1CzSni99xIYSxwTYORkA3F4 4SOKyQYIqWi2rGkKjJQsKiC0gHL19fs5YFQrXVbiHzhec9jrVDap1+G9mmAza3cao7 Salgy8sf8hFH6tFBbM7ktwtUjhdHMDedP7xr0tk0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150082.outbound.protection.outlook.com [40.107.15.82]) by sourceware.org (Postfix) with ESMTPS id 3594A3857C46 for ; Tue, 1 Dec 2020 13:51:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3594A3857C46 Received: from AM6P194CA0005.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::18) by AM0PR08MB4113.eurprd08.prod.outlook.com (2603:10a6:208:129::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.25; Tue, 1 Dec 2020 13:51:53 +0000 Received: from AM5EUR03FT003.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:90:cafe::51) by AM6P194CA0005.outlook.office365.com (2603:10a6:209:90::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Tue, 1 Dec 2020 13:51:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;gcc.gnu.org; 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT003.mail.protection.outlook.com (10.152.16.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.26 via Frontend Transport; Tue, 1 Dec 2020 13:51:53 +0000 Received: ("Tessian outbound 6ec21dac9dd3:v71"); Tue, 01 Dec 2020 13:51:52 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: bd8055da728df7b7 X-CR-MTA-TID: 64aa7808 Received: from 2793f9cff11f.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 0F7420E4-88AF-4165-A2F5-605D1F669FD3.1; Tue, 01 Dec 2020 13:51:36 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 2793f9cff11f.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 01 Dec 2020 13:51:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lBoSylLp8d2BD7HUPRKou1Hl8NtONHU5N3l/bQ+AeDRgAf7R5uUcZulX1tqugr/y1R6o09/BEcI+jAF8h9TP4VKSStuufDUX2fQFCFB1FWRCm+rmN//J1nIud6fvdRSHApQIuH2cYVQThuTY19Caq76W4WaMJiyuvEFzUR/KyJ9FTkVoHtr+hp1FZQVDaEonpmnkcol4GyNyv/l67fuqhwhA5uNYYWrWwg5fyFCffKgW5Ss7RYeoIUIHK2sqhCbLFriGv6uuJb7hnv5n0uR+qhZGnVPxVFxAFgZ49zleIkO9lZHGoqzSP4Oxnq8OjfTg7BJjYpp/WjdH/DQWs84J5Q== 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-SenderADCheck; bh=r4KDvojIgHDkkJb6MrCaOFi+PJpb2G6ExotgNfdpuv4=; b=cAUoyAwqJx/36EGDwVlWx0yIee7D7Y7WVLJospPSfq9aDTwP0yjk0mNeT8gC0CNM4KZ+tbhLon2+1ySfiOzlYUAz3fIqTi+ya6nxeCM9zHa3ZwBOEzzYXBkhjWlXAs1/Bdy+CPVVm2pN6LO4Pa8uMY12UZ8ddg70FJ6V8UPXeHwYCatxD3EF0D088FVAKP72HtnpFJMetoxsCbiepuA7Hoa3T1k6wMDgfncISQfbLjkBPyLSUoe4qSzxTm9A2R3vTdcFTnuAHZQyBkcpinUDmtmGMrD+2iFH/L9MjRYNctz0+cv82X/7p3ZAa08XFyN9n1ach237x+D4rIsLCdEzQQ== 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 Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; Received: from AM6PR08MB4900.eurprd08.prod.outlook.com (2603:10a6:20b:cc::10) by AM7PR08MB5511.eurprd08.prod.outlook.com (2603:10a6:20b:10d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.22; Tue, 1 Dec 2020 13:51:35 +0000 Received: from AM6PR08MB4900.eurprd08.prod.outlook.com ([fe80::5805:be9:d66d:7b65]) by AM6PR08MB4900.eurprd08.prod.outlook.com ([fe80::5805:be9:d66d:7b65%7]) with mapi id 15.20.3611.025; Tue, 1 Dec 2020 13:51:35 +0000 To: gcc-patches@gcc.gnu.org Subject: [PATCH] arm: Improve documentation for effective target 'arm_softfloat' Date: Tue, 01 Dec 2020 14:51:33 +0100 Message-ID: X-Originating-IP: [217.140.106.37] X-ClientProxiedBy: LO2P265CA0283.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::31) To AM6PR08MB4900.eurprd08.prod.outlook.com (2603:10a6:20b:cc::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from e124257 (217.140.106.37) by LO2P265CA0283.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.20 via Frontend Transport; Tue, 1 Dec 2020 13:51:34 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 0db5fdc3-bd61-4d59-9222-08d896004270 X-MS-TrafficTypeDiagnostic: AM7PR08MB5511:|AM0PR08MB4113: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:10000;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: lqT8kCD7ZmM1MuUA8xg4z+DaAcP77hQB4Jd0MIdIVNhpHAx894SMaSXBxvg2Q1+DzIfq2oizT4XzJvxMRljbSpLo6RGu8SMtPxUo/pBdr1ZNLdV9B8ux9yxnlrMJF9dfKiQ1HLropdRi3TnfURkRo1OoaWwuzgxw1UCh32rZHFOnlv2GvL4Pf46a6tvVo9hlFmwfYzUxHLNln9EmijaxE84/T6k/BNKzBtFzLo/gYMqNo6d60WuspXMeGt5ESjs3tL22/iD/44yfizl8EoCdpUbHCnBtvTYVANO9Mbv3yVMf+bwwanhWy4/yK9dNX9Dk X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR08MB4900.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(39860400002)(396003)(376002)(346002)(66946007)(5660300002)(235185007)(2906002)(8676002)(66616009)(66556008)(8936002)(6486002)(83380400001)(66476007)(478600001)(54906003)(186003)(16526019)(316002)(52116002)(33964004)(44832011)(6496006)(2616005)(36756003)(956004)(4326008)(26005)(6916009)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: iulOx3Lm/DTSq2xTp2FXbAt3wAKOzJNHS5wzD9XG0p2l1TYJ6ts0zr4kU9bsDrVmV7FHqpejvmpIjkf0+gg17H/WOHrj4lXOthVuSgfyNNUwYQv1ENA/CpRXM/AgngSbLyANc6TAWNCmlEvDahGPC9xa+z0Ae41t8IsX8tvs7R+vgfO5S6yZHXGdUofhniOi8AE6zM5RWgCIVxRZmPmjplHYol5TlFO4CQiCT8jI7OHk7iuas5WJwgWVyfAAtREB8ZUtNOfsb8DCBPlnvz93aXota/geNJtXM5BQt9YRkVJS+Eoo9nR0aeiuEjOe9SKOF3zyJ9HZlTg80dLPXdIlmbSRBYdVmQQk6t/DFsi0F0dgATs0TWvDaOHvyaIWw1sRQ5t5vZQBaf9xf/kbfPQbO+Cq31KJnd1RLBpBNajWf21F7ny0ZZMjvx0s71cdu3bkg32ywmAaCOxSB4/OyDN3rqrP9K6UQKFYJ0tu1kgfkpy2V4vRDoiB+2SrVXiWt+5dJn7PUozzbb5JEnezihwuBu2/4O35Eqa8dUJUjjfG940qDQCdTG5suzypKpQZcYNMeYZuGHuCpDZr8CVb7QM+AmXErJuVcsIczCS7h/jYJ3RuMN3BlFz0jzOmuHzhdttWUOYI/QwGaW6slfKt/soytZCo4+vHNAxlOPAeB8DMJY/Uu0KM7/solkozI7okgaSWQAS1kiAwbIO3xzdW+Vcxl8B6ODzt4hyKLSaF9DVA84iJMDJDcx6A21z6uO5OBJcRiu8uEUhqMGzcUD1lCO07dgbryHEyFDGBALdRQjapA6Y5sepH1SRBLHx2g9gGrjIT5j1Jvk8uyV+BJ/vPgpJnqVzyeM2wOA7JM3DbMpZigToy5ofsnhD97cwLsI2Ani9BAUQhRoF8dM1j79VYZp0ztqiOuwHVH6ghIp7rJNZx9ofmLLTgyVkLJVBKU1JkHoIcE16w1TlibkfS4ZG9XI2nD+5XDiRggy6zCMap8RZ3TnZIKl8WGmKsqeWD1sjT97r3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR08MB5511 Original-Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT003.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: b949a2a6-628e-4322-3f8c-08d8960037a0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /3T3pWm86AMCahZ4PatepNdIlMcifXoY8yczF19GxaMeyEEhx6R9J9Ddtmtwatj0U/G1updkPyUl0839UrMrxd596Joip3vI623icAkSAjyqztzYq13n7V9y/MJZONnSLAY7NlKAanuid71GVeDI3LM5ivosZE+Dvo6aWZPNnOzLioq585HBiU7zypPM5E8AvMYFz+AwwdWE+5AZ+D90VBDM5toMkfriJcCFmJaJP+lLzr0ZIXYTqbWcD18tAy1j2H6najVYaAdlHljwmlR2fitSfiMgrFiY2uOJTZPkcN4cYWc4+X6dZcO6DypD3KWs7x1i3Z+cDNA0JFV3Ls1zR5sc2pfGdtWXsYC5Mw5mV6p8FJUBWGm6frGORU3S/vQyk0tGmVZz9BrtkAOlmEI/ew== 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:(4636009)(346002)(376002)(136003)(396003)(39860400002)(46966005)(66616009)(70206006)(336012)(5660300002)(70586007)(82310400003)(235185007)(2616005)(956004)(26005)(16526019)(6486002)(186003)(478600001)(83380400001)(36756003)(356005)(8936002)(4326008)(44832011)(33964004)(8676002)(81166007)(82740400003)(86362001)(47076004)(316002)(6496006)(6916009)(2906002)(54906003)(36906005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2020 13:51:53.1195 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0db5fdc3-bd61-4d59-9222-08d896004270 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: AM5EUR03FT003.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4113 X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Andrea Corallo via Gcc-patches From: Andrea Corallo Reply-To: Andrea Corallo Cc: nd , Richard Earnshaw Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hi all, I'd like to submit the following patch to better specify the meaning of the 'arm_softfloat' effective target. As I've recently discovered we can have cases where '-mfloat-abi=hard' is used and the compiler correctly defines '__SOFTFP__'. Effectively 'arm_softfloat' is checking if the target requires floating point emulation but not what ABI is used, so I think would be nice to specify that in the documentation. Okay for trunk? Thanks Andrea From 67e74689e4332d33c3f27119dc21a7722bb6125b Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Tue, 1 Dec 2020 11:21:33 +0100 Subject: [PATCH] arm: Improve documentation for effective target 'arm_softfloat' gcc/ChangeLog 2020-12-01 Andrea Corallo * doc/sourcebuild.texi (arm_softfloat): Improve documentation. gcc/testsuite/ChangeLog 2020-12-01 Andrea Corallo * lib/target-supports.exp (check_effective_target_arm_softfloat): Improve documentation. --- gcc/doc/sourcebuild.texi | 3 +-- gcc/testsuite/lib/target-supports.exp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 852eaa2e676..72b83748318 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -1799,8 +1799,7 @@ variant of the ABI for the ARM Architecture (as selected with @code{-mfloat-abi=hard}). @item arm_softfloat -ARM target uses the soft-float ABI with no floating-point instructions -used whatsoever (as selected with @code{-mfloat-abi=soft}). +ARM target uses emulated floating point operations. @item arm_hard_vfp_ok ARM target supports @code{-mfpu=vfp -mfloat-abi=hard}. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index ff6bc5f4b92..24ff9fa0476 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5658,8 +5658,8 @@ proc check_effective_target_arm_hf_eabi { } { }] } -# Return 1 if this is an ARM target that uses the soft float ABI -# with no floating-point instructions at all (e.g. -mfloat-abi=soft). +# Return 1 if this is an ARM target uses emulated floating point +# operations. proc check_effective_target_arm_softfloat { } { return [check_no_compiler_messages arm_softfloat object {