From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2048.outbound.protection.outlook.com [40.107.15.48]) by sourceware.org (Postfix) with ESMTPS id A08413858D33 for ; Tue, 7 Feb 2023 15:24:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A08413858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=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=WxX7c3ABJPM33qpaZ7o1bY/PWuTsvtr5kGU4p8RNZgg=; b=YID51FN4Y8eC8U4s1qaznzIZEFcQHLAagzdH8qmRcfunr94fdb/So+1bcbCJYVCa609a63AaiKeCjzrBRVuykRFa/StA1DgNDZplrKlb6skLefLRaPy6fryMThCHh3BeNRX3ghSe2GDElQQNlsuF6r9q1YIQOMXFjPQdiYIorbc= Received: from AM6P192CA0071.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:82::48) by PAXPR08MB6414.eurprd08.prod.outlook.com (2603:10a6:102:12e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.36; Tue, 7 Feb 2023 15:24:53 +0000 Received: from AM7EUR03FT041.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:82:cafe::bc) by AM6P192CA0071.outlook.office365.com (2603:10a6:209:82::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.36 via Frontend Transport; Tue, 7 Feb 2023 15:24:53 +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 AM7EUR03FT041.mail.protection.outlook.com (100.127.140.233) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.16 via Frontend Transport; Tue, 7 Feb 2023 15:24:53 +0000 Received: ("Tessian outbound baf1b7a96f25:v132"); Tue, 07 Feb 2023 15:24:52 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9b78f1db06079706 X-CR-MTA-TID: 64aa7808 Received: from 0e18a79c10c2.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7DCAF010-51D3-4C4F-B33A-B8E4356CCAB8.1; Tue, 07 Feb 2023 15:24:42 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0e18a79c10c2.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 07 Feb 2023 15:24:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QfRCeBm5kBNXmyC8h5hPZeCqSs+qzGVA+MzSlTykgc3ctp8nET6/20veqYk1s/TFYzbyWLiliWa5HoCyGVIl5AX6zPQr1ZztmymYM5mjNSDk5jrVUQnd/UbTp6o//cPiNeob3QdxhDqA6lvnkwDJsVzp+oRHcACnlUY9y42ntoBRfpuyT4cERyBqZd9VRhMNRgxw40lxohAx+OIglbVJbqc9jeosxHIsgWWPxtl2RVTI99O2uW1YxMg8ogywMF8tJ8YVAXr7ml3l9NcB+tNdO1wSWCDxmAC9VvPrzhNz7f/lgL08+w5vhA+3PBhVi9F85+gyLtKPEqtHwu6F71iyTA== 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=WxX7c3ABJPM33qpaZ7o1bY/PWuTsvtr5kGU4p8RNZgg=; b=C2lgz5pHRdBNqm7uJnu+YpT3tS+zfPQo2AGumPyIaByBklbStpnTrvGw6DNe/hsX3lAOYPKQCRz1tgcWdLPZk0XLPRwuS5jW5s2LsPac5aPBa7vDZAoY+H7ZTPgQZlcb7IxwdJ706Xvc+HYswQBck9WWt4sPv5aaLSZ/TuvPKbwtooSknsX6TbnzBXr5nHC98HU69DQNgNZOtHrA8NlUymAHyFJ8dHemQ3hvg+M3US6RuzaqO+oVWiryuqqUL0EVuNHlFmK01kkaW8nPHo3OkU3Q8/MZENdskuEyNcmLZoqqD4K0DITtgg+j+NmrPWK9fmncCLytKlScmDoxWwq7vA== 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=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WxX7c3ABJPM33qpaZ7o1bY/PWuTsvtr5kGU4p8RNZgg=; b=YID51FN4Y8eC8U4s1qaznzIZEFcQHLAagzdH8qmRcfunr94fdb/So+1bcbCJYVCa609a63AaiKeCjzrBRVuykRFa/StA1DgNDZplrKlb6skLefLRaPy6fryMThCHh3BeNRX3ghSe2GDElQQNlsuF6r9q1YIQOMXFjPQdiYIorbc= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DBBPR08MB5993.eurprd08.prod.outlook.com (2603:10a6:10:1f4::23) by DB9PR08MB9754.eurprd08.prod.outlook.com (2603:10a6:10:45d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34; Tue, 7 Feb 2023 15:24:40 +0000 Received: from DBBPR08MB5993.eurprd08.prod.outlook.com ([fe80::8e37:2d67:6a09:280b]) by DBBPR08MB5993.eurprd08.prod.outlook.com ([fe80::8e37:2d67:6a09:280b%9]) with mapi id 15.20.6064.035; Tue, 7 Feb 2023 15:24:40 +0000 Message-ID: <1b261916-e9f8-b90a-829a-c7b831aaa1cd@arm.com> Date: Tue, 7 Feb 2023 15:24:41 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] libc: arm: fix setjmp abi non-conformance Content-Language: en-US To: Richard Earnshaw , Mike Frysinger Cc: newlib@sourceware.org, richard.earnshaw@arm.com References: From: Victor Do Nascimento In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0163.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::31) To DBBPR08MB5993.eurprd08.prod.outlook.com (2603:10a6:10:1f4::23) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DBBPR08MB5993:EE_|DB9PR08MB9754:EE_|AM7EUR03FT041:EE_|PAXPR08MB6414:EE_ X-MS-Office365-Filtering-Correlation-Id: 93015927-ac3b-4a1f-c060-08db091f7626 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: iHhdYn9pchRJVxTbo4013sQjq+YvdQv8y0Zkv2e+mjHk63NFUZo26zHKS1rZgVLUWnc1S+FGZ3ZHRKbGySfmXQFsXuNv9/O7b3CAGuRzDjq3n/5cYs83+vhg9fVWYXfLIC7mD+DpXJBcWMluEiICMEk8oAPoz433ArfF1BSLw5daOZtejKmm1JIaxqLHliFvm4xnrbOHEiVFainbPOi1ey010aGQRODpE3rZo10LKBDDNuBfjuClx3wJpVTqgFa7EFJQ/DCN4YUevwNre1e6JKQ2Z3ySJgM2LbXxI+zSV/8HhjV/5W6NUniKjVs/jwbNLGAfyZO6LQoVGAveAX+fUydObqTJO/oheP78Db7O2oJq6MFLJ54yocvbqVf44dfrrnxw+pFJHdFcky4QXDiw138Qk+12fuo0rY7zLbYKBzR2+G/DkFAScUysLLJ8I0/k2BNJ+TvlhY88fxYqFHdV6AK3/U4ilXAL54ZYayVkeBGJREry/jlTmiLiR02Ml9lWrInPPJua/boHggspDE7iyxA1yXieTscmdB8G/DV1V1VxL0iPPN+lhV9s3fu7SvivqxCTwr7zk77IiVTzKifDnzBvVyoDv1H8J69pVNJY3XV/SQRM/vSJEsZ1Rcz7RLzExaq67xQlrO55qnIfkzi4K9iOO+zE6lFxGGwt0LTepqE5kyFnrBECAsYnv/+/yJaaE8ZPX08bRny0wdiREDbbz5qUOr8G/wlwoLydh0k+k9xOwR6kk7vdix+C9TjjK7HyvLPwdC6aTntYjobtbpYuWQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBBPR08MB5993.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(366004)(39860400002)(376002)(136003)(346002)(396003)(451199018)(2906002)(66476007)(83380400001)(66946007)(4326008)(8936002)(5660300002)(66556008)(41300700001)(8676002)(966005)(53546011)(6506007)(38100700002)(6486002)(2616005)(478600001)(6512007)(26005)(110136005)(316002)(31696002)(36756003)(86362001)(31686004)(186003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB9754 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-Transport-CrossTenantHeadersStripped: AM7EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: dcaf7b46-60bb-46e9-7468-08db091f6e0e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5ShFAqmro682xsPKhvh1dt786VgyK3HzTG7MMJjGnt3rjmPtLaHtAM+PQ5KEa9kEDVZKEhyqQAIPZW9QLv4omKc04d2yz69Bcv/D7ANtIo1n2R6EcfeyIm5A8pqkS8nYcOrIgbiX4fqFzEjOOAhoWLaTOMZkKxpv38nwrULp4ePJLU87j4ld21rHqshAl+AJ28q9knBZ/CoKSr5oHWr6jWaJMvjOS2RT7X5lHBwzFyyH90K9F4V0g7KgOY1YQBw3V/l6kTFfCvWwnLHIxg9D3RWP7kUkyTwzmTY439s5E3OO+FjfDlkqWikZm3LHeMo5uZgizE6ZFT0hOiwqkh4p/GB8OfsFAfbx/LPRskx+LB+UPCGv+sKzZJTeT1FwWs6ruuq6Hqo1q9zgTJ7CaUtuvyWVItC9x1vVoKzreUVCj47tU8fbIussR3aAtbVfcGtzDEhkRuwg+kg+UMVhwMYCNzFeP6TNN4tA91oTml75RQhC2/J8aJuJVYyXFz1sD9DumEyih0C5degrqH5MygoxQ24U0oSDdG12CSZdlZHLvOaQnfcsFAzDuZ0Jqa3G+oJVEMn+aqbMYxHs6YgwykNSp3nemU0qpOU33MpfRYJ+k9r4OHtQfNvRVjnjIYE883rvqDFHhi6jGLfXsv8baXfAqIGn8XFMn565EmddN3PnGNLlPjEEzEANt7qTrjSavJMn/g9Gf/WPEezDnTXFyAJqvAFkUesYYiLGOTNoKOVZ5KBYb7E4Bu28cJPlA6qYJgbNmVDnYeFUeut0zUyTlnPDZw== 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:(13230025)(4636009)(396003)(39860400002)(136003)(346002)(376002)(451199018)(40470700004)(46966006)(36840700001)(2906002)(40460700003)(8676002)(82740400003)(81166007)(316002)(83380400001)(356005)(8936002)(41300700001)(4326008)(70206006)(36860700001)(5660300002)(186003)(6506007)(2616005)(53546011)(6486002)(966005)(478600001)(26005)(70586007)(6512007)(110136005)(82310400005)(31696002)(86362001)(47076005)(40480700001)(336012)(36756003)(31686004)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2023 15:24:53.3319 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 93015927-ac3b-4a1f-c060-08db091f7626 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: AM7EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6414 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Dear Richard (now also CCing the mailing list), One of the folks over at the Gentoo bug discussion inquired about getting the patch back-ported to the latest source snapshot (where the problem originally presented itself), newlib-4.3.0.20230120. Is that an option at all? Cheers, Victor On 2/3/23 13:09, Richard Earnshaw wrote: > > > On 25/01/2023 13:30, Mike Frysinger wrote: >> On 13 Dec 2022 14:51, Victor L. Do Nascimento wrote: >>> As per the arm Procedure Call Standard for the Arm Architecture >>> section 6.1.2 [1], VFP registers s16-s31 (d8-d15, q4-q7) must be >>> preserved across subroutine calls. >>> >>> The current setjmp/longjmp implementations preserve only the core >>> registers, with the jump buffer size too small to store the required >>> co-processor registers. >>> >>> In accordance with the C Library ABI for the Arm Architecture >>> section 6.11 [2], this patch sets _JBTYPE to long long adjusting >>> _JBLEN to 20. >>> >>> It also emits vfp load/store instructions depending on architectural >>> support, predicated at compile time on ACLE feature-test macros. >> >> this breaks building with GCC 11 and older: >> https://bugs.gentoo.org/891589#c7 >> >> i don't think it was intentional that this only work with GCC 12+, or if >> it was, that we want such requirements.  GCC 12 is less than a year old. >> -mike > > This has been fixed with commit c6e601de84ea9f2be2b026c609cc3c1fe82a3103.