Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1463397ybl; Wed, 28 Aug 2019 15:19:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEntXqRL/DVBEdtWzMxaaBvgwrSWIyXpT+IT9AEYDs6K3mCWMWnPFLm8k5ZkLgFKS8HcxC X-Received: by 2002:a17:90a:c70e:: with SMTP id o14mr6570174pjt.56.1567030748067; Wed, 28 Aug 2019 15:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567030748; cv=none; d=google.com; s=arc-20160816; b=h6dZiburiiWaVPrRCBtydWtc1JzFyW0dQyWFR2rpgCDsHB4k81kOUYNiSINuUdRClt o/vIKbkJ6xnJxlWFBAOT3smLSgxzOKAkQ2EQVUJ6AChjVtEN6CEMsxGIdi+lAXpEmWQR 05IzvGqe0jbICUHBPF1q1d/Bk/PLYW9xOL50SGJXz2mGZjOWFvjSgz0wpPiNRUfJyF34 EfhKbwytWH2LKXG7ZPkMDXHBakPKwBmCLPD0hC9bCOSF1kGKybRtoVOkwrkXiF8MH23Z p/tJIqvjRlc1bLCVKe9qaBj4W1q3oACqsT/6VdFj7hcMy95oLaM3O9cSSDd9ceAXCMNb L/RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cI7lPiUMiKomeyCUPJV8+wea36GrOdMvUW16YwohpL4=; b=zS8QU6xXKrJ69+JKoFI9uWtTmU6JfUNTnrYYa+98ePO7p1IOuxgvoYuDYCl6pfNbRb d4GQtvSTFO30Y0wj+PZv3nT2Jgrbxjd0hEW5cqO2OIQipBYm3rnMuGxeMkCJlE2vpX7h o4s8EbYoE4lDb91ASw9dmqZYDmWHogGTqGq0/G6ffbvVL9DvhPTBZyQ0C0xFdvnfAwa5 bCQZPUFCjkvFrwBY55y9aHFxTv+xJ8RdSIeJKLPgD/M16K9RuViLXoVOkodTjrEuCGMl yBsH6EADzI1uvqqNnUURYXYh0uzho1mj/xNC9yAvFkl0ZbtoZp7NvyO8tq9aYM49c9v+ KtxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jXn6+gJp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91si182441ply.365.2019.08.28.15.18.51; Wed, 28 Aug 2019 15:19:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jXn6+gJp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726960AbfH1WQb (ORCPT + 99 others); Wed, 28 Aug 2019 18:16:31 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38452 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726658AbfH1WQb (ORCPT ); Wed, 28 Aug 2019 18:16:31 -0400 Received: by mail-pg1-f194.google.com with SMTP id e11so447823pga.5 for ; Wed, 28 Aug 2019 15:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cI7lPiUMiKomeyCUPJV8+wea36GrOdMvUW16YwohpL4=; b=jXn6+gJpaxbVNRJosKVFyJhneE9YA5zZwsY8f08DrvC0jdN8yLLcVGCWMK2MI3asR4 mR/w63vTs01x2zv23z7+ENGGZQxl5lP0L7IswMDFJOeF+PfFa5XufKp3POnqA+d+T6gY iU+oHtm3aswQz2vouOHL+N524tw8/MB11zHdlBgBdRzuAh47R8nLGjf1MN97LAs8TJRe t/WglKh0C6Rjvv9Re03vW31Joo/EvEeqi4mSkOvC7ypSmqITd1jZJvKuBnm7iaOIvEcf ItToIAbDhJ7/bc4XNow2l99yUWnAB+lmrvfN0Ccw9w/MiRJ2uXkTq0B2GJ7+NypqqmIG MYiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cI7lPiUMiKomeyCUPJV8+wea36GrOdMvUW16YwohpL4=; b=idtzqDq3oc4vrLEnE3q+ZWat3C/zlCt36xBaIy3RMmn5zswKjxxTDAm41sEuXkZDia RAxTa6TsTFoQaWy3HJwikOt9gbJpUZ7QjEYkRjSQ/TUoIVPfplo1C3RZ92E+cuL3KKvp zoLb2VtajfBxPrj2l9yeWNIC1Qn011rAkOwJwdqaAioqGOqbefM/HvhQxs3/NeiDwB6h RfDiV5rw7tMspDOZNwClMG2FYCsAKd2O3JL+jsFmHQELV+ufL/QJjX7lqKtX7COJ/LX6 LoIHvx43kZ2HHHBOme6vVmeJpaIoCnelwzsW+HuzziFOjX6d8WomSA7yvze/QZFov5pS l5iQ== X-Gm-Message-State: APjAAAUqGOpaslpYtp1rV5YP1LTohe9eIWVe692VPqPeXuRmrj4U7NCx pBjmqRBDHtm1hJQRcc1XvbTNhQ7ngVrOrLEUH3A1Wg== X-Received: by 2002:a65:690b:: with SMTP id s11mr3546456pgq.10.1567030590292; Wed, 28 Aug 2019 15:16:30 -0700 (PDT) MIME-Version: 1.0 References: <20190812023214.107817-1-natechancellor@gmail.com> <878srdv206.fsf@mpe.ellerman.id.au> <20190828175322.GA121833@archlinux-threadripper> <20190828184529.GC127646@archlinux-threadripper> In-Reply-To: <20190828184529.GC127646@archlinux-threadripper> From: Nick Desaulniers Date: Wed, 28 Aug 2019 15:16:19 -0700 Message-ID: Subject: Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp To: Nathan Chancellor Cc: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev , LKML , clang-built-linux , "# 3.4.x" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 28, 2019 at 11:45 AM Nathan Chancellor wrote: > > On Wed, Aug 28, 2019 at 11:01:14AM -0700, Nick Desaulniers wrote: > > On Wed, Aug 28, 2019 at 10:53 AM Nathan Chancellor > > wrote: > > > > > > Yes, I don't think this would be unreasonable. Are you referring to the > > > cc-disable-warning flags or the -fno-builtin flags? I personally think > > > the -fno-builtin flags convey to clang what the kernel is intending to > > > do better than disabling the warnings outright. > > > > The `-f` family of flags have dire implications for codegen, I'd > > really prefer we think long and hard before adding/removing them to > > suppress warnings. I don't think it's a solution for this particular > > problem. > > I am fine with whatever approach gets this warning fixed to the > maintainer's satisfaction... > > However, I think that -fno-builtin-* would be appropriate here because > we are providing our own setjmp implementation, meaning clang should not > be trying to do anything with the builtin implementation like building a > declaration for it. That's a good reason IMO. IIRC, the -fno-builtin-* flags don't warn if * is some unrecognized value, so -fno-builtin-setjmp may not actually do anything, and you may need to scan the source (of clang or llvm). -- Thanks, ~Nick Desaulniers