Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3282068ioo; Tue, 24 May 2022 18:47:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjRyPu7P/5SWs/hnxXL23trKRDOgXDiGJOysOhOvFOGvnpD1YYQmXAWzhP+dettddu4RSC X-Received: by 2002:a17:906:a11a:b0:6fe:9814:70eb with SMTP id t26-20020a170906a11a00b006fe981470ebmr25261934ejy.118.1653443226807; Tue, 24 May 2022 18:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653443226; cv=none; d=google.com; s=arc-20160816; b=Jih+/v5T2B5VEIrxqNFDDgYUf3qbuL9BRMFfDbGQiAMlrZZx8AMqEozi1IrEVSHo0l 2prvOOIOwcnaGRXYkku8Snohg4H0H+S/4jB9xsBE/2b0cZQ2MZ+QBy4d0hi7KLvqVo93 s8qTXQBok8CxGulF+uwPeUMw12hmvQnwCoivrR9lwxcm07Ce6N5kmr4+SZ+PzApyh1Ip jfHwKxIP016aCf32dwT3dDQ1EA126889sj4MBpchO/peaDIOPgSXWUnFJrSqu+NXi+yA pH5CBHCrLfRR8f92KQBv/hn8EwB7kZSqP8JZY6h+ve0IrQ5L4B3cNDM+VOTcyZuCTp48 qX9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0oJvDE3rqw1POgMlD+U//hql5RM2jeKo+o/vwbI7DRw=; b=PfC4fW2oEk0v3r8TCcB3SJAaRScDokhfzRnFR+tbw4bmbZY1/NR+fWNqhc/WgmxeDL VtshNuRTfMDXAzR5h382JS12YZ1Mpvdfs2ppm8OBaMk6CTwVCPiD+tldxQM9DqK4bmPA b+ggCq4OvJPmEmPsWpPaLFhokdm3sHDC/PQxKCs6/B3NZFr9Dbk8cMdIiXuSwBWpoUzP SiiHIJo3R5t9W7TneoFAnBUs3HU+KpEvKzk0uTS3jxdnJpwJNax5LZn5ZbymhgrCPmnN uGNwrqa6SHps9aL0YBjEgcgEuX8zOiis2t59Y0k0OKT6/HreoYFOrwnaJhzm26+ZOyPQ u7Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ljA7Qx9w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j26-20020a056402239a00b0042bca82b686si107439eda.618.2022.05.24.18.46.40; Tue, 24 May 2022 18:47:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ljA7Qx9w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237295AbiEXMaH (ORCPT + 99 others); Tue, 24 May 2022 08:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237203AbiEXMaE (ORCPT ); Tue, 24 May 2022 08:30:04 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05EE49398D; Tue, 24 May 2022 05:30:03 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id z16so5527537ilp.5; Tue, 24 May 2022 05:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0oJvDE3rqw1POgMlD+U//hql5RM2jeKo+o/vwbI7DRw=; b=ljA7Qx9wZeM3JXxhMCZDEpmHllMrC5husOlVjnjkG54MrLWMicRWxFdMUSmQ1bXOfa jZ434/DcRZzGRG8AD8WkjF0QhaYw5+LJC2O5VvCRj0ZM7hms602wP72tWv2pkBqbevU1 sOpOaTZgVE82VZ8pP1KIxFOyUwkVU/DvimAPTeq+C3iRPZjTTDH63XGhiGdaszAGNEf/ RoLFK4OMy4Mmj8uYEOn7hbaiu1GBB/5arFpU4liVoqWf86Ylu3wN423MuHbEFfSbu1L/ FmXSmwh/+xcry9R+F9hK6h3xGOUWSZHAZql9xGvsV+ber4bQWusB6sAMpbett7Ho4Py9 ALWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0oJvDE3rqw1POgMlD+U//hql5RM2jeKo+o/vwbI7DRw=; b=3pvwwH+GVNvyrV5+DttJF7KD57+GcIy9iB5WtS4gJM8GLV8V7uqFswwdvU/VNN2a8F k3ztr+3ihpegmqZw7gfsKFJjmy3bgO/VdTGzZ0/zuZhtMnT8OH2H2DCCDBb7AGxBSzXe pQuRW27Lg4NRtRToFLS6sbOpToK2ed0AlE6nbnt4m4sFInvd40DSoeAC17CM0ahCYS4O 5ilCpOi3YDhWzIECuHKvoxri73+gDTd56l/QAPLCQPcujxsVgc2/WLEKK1XU/zQvA7zl td6ADDNzXn6w9r4O5D47yVIUnex54ACnOINXKmAGCNgPOJ+ikEZtEx7CNAaqLj8UksTZ eaNg== X-Gm-Message-State: AOAM531j5zUWVq44Q/bP3bktqetBW15IouBLGoZTSb9Jlzm8a8lT2ehu rP4ltL1nWjoIZciEFrmN9cFkaMTD/sCDRfJIhn1s3sOgbq8= X-Received: by 2002:a05:6e02:1c81:b0:2d1:3971:9343 with SMTP id w1-20020a056e021c8100b002d139719343mr14028193ill.237.1653395402449; Tue, 24 May 2022 05:30:02 -0700 (PDT) MIME-Version: 1.0 References: <20220523020209.11810-1-ojeda@kernel.org> <20220523020209.11810-7-ojeda@kernel.org> In-Reply-To: From: Miguel Ojeda Date: Tue, 24 May 2022 14:29:51 +0200 Message-ID: Subject: Re: [PATCH v7 06/25] rust: add `compiler_builtins` crate To: Nick Desaulniers Cc: Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux , linux-kernel , Jarkko Sakkinen , Alex Gaynor , Wedson Almeida Filho , Sven Van Asbroeck , Gary Guo Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 23, 2022 at 8:37 PM Nick Desaulniers wrote: > > ^ Any progress on this? Got any links to any feature requests or bug reports. We got the floating point ones removed via a new feature flag (https://github.com/rust-lang/rust/pull/86048) that Gary added (they were already removed by the time of the message you link), so upstream Rust is willing to add this sort of thing for us. For the `i128`/`u128` ones, no change; but upstream Rust is aware of this need (e.g. we presented them in the Rust CTCFT from November: https://youtu.be/azcrUzeY3Pw?t=751). See also https://github.com/Rust-for-Linux/linux/issues/2 and linked issues there for more information. > Also, I'm not sure my concern about explicit build failures for C code > was ever addressed? We have a constant problem with `long long` > division on ARCH=arm32 and ARCH=i386 in C code. > https://lore.kernel.org/lkml/CAKwvOdk+A2PBdjSFVUhj4xyCGCKujtej1uPgywQgrKPiK2ksPw@mail.gmail.com/ In my reply to that message I mentioned that the goal is to avoid the panicking intrinsics to begin with. We already removed some, so I would try to continue down that path. If that proves not possible, then yeah, we would need something different. Cheers, Miguel