Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1515350ybe; Mon, 2 Sep 2019 22:58:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyikMnkcVCF4Q55vcPI6+/yF0qf+Qj/s5XDqtI4374Ib8UnAyIlZ+TkgZT9d+bG420dgCLD X-Received: by 2002:a17:902:7483:: with SMTP id h3mr30248381pll.163.1567490301528; Mon, 02 Sep 2019 22:58:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567490301; cv=none; d=google.com; s=arc-20160816; b=k6leeDWHAo2jrxm0nshM+gjl7tD5qI5DZqCBK3x+bFnRSoiDnjAH4mdCRZXGnyByMJ vFwLXXLAAQ5f6ac31ZXAQhfas74f3K+JXLAHMLHSA78AtqaksJIEeLuHg6uJnlku/YAq VmY2IgQfguAYErqswbGCYCN/js0vv11lHSwUlKNSCTSJQ382JsRiQILQYk3b2w3MYrS4 QqbgpP2iTz/9+jiha4F33uUud4RBz9ZZ24GBHLLnjR5d+S+DwPbZfNjb3WPt8ejfac1W RCgO35/w0EVEmVzErwNwVKDZmWUMFmdYjJFOX0vLRKjlbis1336D5EAlCcwM0Uso8zFv urCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X7sSiUySVZV9o7/lrwJkuFeTAt0kOUYd/2rnVcX4C8w=; b=KtqO3q2eR/6noAQP6z2Xh2g19rTapsG+KMsSbIBZLDnlqSIzGTM+kw9CCmSijx/44Y LqIgDlan6PHNUYZMqwvCsqXSu4C962TouPf1fS5xlLQdJXhfJr2WfEY0/wVwLHOqXfai +EeXnn7IzQfjFbLBdI/WAx4JXRbIQbDmIY+5nswvg6RKrmV1/O1AcZ+M2LoAHzENINy8 KXrwVBfWIKeGzyhYR6RBFy5WsxN80Uhkv7Ynpg3G3p1J2kLJJ8akNpC2Kekgbw6NaZ4m vsPrVVcR90EIawNi4qzAViKlJaVBNzb+aFlb2lQOnHQAwt3lxqnoodEW0TqNHrWhwJNE E+SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ys9Y1fQI; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89si4434440plf.367.2019.09.02.22.58.05; Mon, 02 Sep 2019 22:58:21 -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=@gmail.com header.s=20161025 header.b=Ys9Y1fQI; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726452AbfICFz6 (ORCPT + 99 others); Tue, 3 Sep 2019 01:55:58 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44529 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbfICFz6 (ORCPT ); Tue, 3 Sep 2019 01:55:58 -0400 Received: by mail-wr1-f66.google.com with SMTP id 30so5028035wrk.11; Mon, 02 Sep 2019 22:55:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=X7sSiUySVZV9o7/lrwJkuFeTAt0kOUYd/2rnVcX4C8w=; b=Ys9Y1fQIYN15V0apg8nw2x0mdkLG1gGNdLtlgz4yLuv9IaPS1KM1uIJ8JN37YtoltE l8m2NDUGfIn0E5p4sarsomM9ekjwyWsHsGnAUD5wkCtuvsEbywJGCy1q+CDsMJrIYNCq Lh6kM0IYyvOWZoWc62AfycTE0J7CU6MwvpmfPExJ7BjxJZGNPfCfYqfF59G8B/9AvTZV IxhS+n5aKbC1rVX+jOnVOQvJG5nrFZnCbpYfYjlPcQmQYmtXkc4qvJlrFWSLocMFeqDg WTRxJ1TqYC6NiivsiaabMgS91UanJWDR3VngBpHqlgCIHu81YQ49cfa6u1eu05K0Vh8g F24Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=X7sSiUySVZV9o7/lrwJkuFeTAt0kOUYd/2rnVcX4C8w=; b=HV/H5fVwvqyarnC0Db3tzlcei1DNHhlVyqhKn8ZMJByrzHgslNLUyk+PXeAD5k5a/u PBih6leeV59wo0Hu+0eTRpGev+4JLhcH2Oihzs3pNLFk/cYvDSgEvb0pVydNb01Et/j8 5dO4ZDhOHN8hIcpijYIjY4nduuuFGHcGqLAuP3+7zHF4fmvXFDoiruOBzQx5nR0dwgT4 eCQN2N3rAOf8QJNZBBsMJ8nhhoXfbeuLR3MqX+onXXuHgQm+yUOZ0FnTfhu+E57Fkdru S9Svew5Zqhp2KlX8iQt8qOBsnKBYmoY3JDKFBe1m0WCzIRubIydKmL2LuOLbroTTZ5Fa y8Ww== X-Gm-Message-State: APjAAAVYq3PWSIzKMBUbm4QOTUDVeSG3kHBe+zDDfnhS9DcgFgUeUv/0 47QkaxDJdOGBvH2IWwB21vl6TS/m95s= X-Received: by 2002:a5d:6602:: with SMTP id n2mr10555596wru.317.1567490155857; Mon, 02 Sep 2019 22:55:55 -0700 (PDT) Received: from archlinux-threadripper ([2a01:4f8:222:2f1b::2]) by smtp.gmail.com with ESMTPSA id a130sm7848265wmf.48.2019.09.02.22.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 22:55:55 -0700 (PDT) Date: Mon, 2 Sep 2019 22:55:53 -0700 From: Nathan Chancellor To: David Laight Cc: Nick Desaulniers , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev , LKML , clang-built-linux , "# 3.4.x" Subject: Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp Message-ID: <20190903055553.GC60296@archlinux-threadripper> References: <20190812023214.107817-1-natechancellor@gmail.com> <878srdv206.fsf@mpe.ellerman.id.au> <20190828175322.GA121833@archlinux-threadripper> <20190828184529.GC127646@archlinux-threadripper> <6801a83ed6d54d95b87a41c57ef6e6b0@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6801a83ed6d54d95b87a41c57ef6e6b0@AcuMS.aculab.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 29, 2019 at 09:59:48AM +0000, David Laight wrote: > From: Nathan Chancellor > > Sent: 28 August 2019 19:45 > ... > > 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. > > Isn't implementing setjmp impossible unless you tell the compiler that > you function is 'setjmp-like' ? No idea, PowerPC is the only architecture that does such a thing. https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/tree/arch/powerpc/kernel/misc.S#n43 Goes back all the way to before git history (all the way to ppc64's addition actually): https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=61542216fa90397a2e70c46583edf26bc81994df https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/arch/ppc64/xmon/setjmp.c?id=5f12b0bff93831620218e8ed3970903ecb7861ce I would just like this warning fixed given that PowerPC builds with -Werror by default so it is causing a build failure in our CI. Cheers, Nathan