Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4311227ybp; Mon, 14 Oct 2019 02:36:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcsifSOsB6uBqDninaC757MySwJYDqdZCtVgYTEj+90GAO2DCXv4oepo+cLEARVPaJJppc X-Received: by 2002:a17:906:cd11:: with SMTP id oz17mr27742943ejb.71.1571045771722; Mon, 14 Oct 2019 02:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571045771; cv=none; d=google.com; s=arc-20160816; b=cawiw+tadirHQR1X4Vop1I2NYzq5dRFCkkph9LGbtHBNI4Qc7CSftknmb+WqTHDlRJ CSSyn0408g4uiZ38BodEcEfk+zoVLaupDKYPj6jefO2Mufmmh3qLVI+1LD2hCpmyEMG6 Z653RN8+LVaTFSIN/k0j+/JQz7nxMswYSV+NOLOmOmc1j0vbbgAskaO6SY4kdNLhKUZa qEAGNRFf6WQopv3v0KX1alTY4eGHpGlwJuaGXJAAo24Z/M1Kdyf7jOPo4vEPQnWisyql bWK5U4CungohTLRo9V5gU+1Saq8G+oLqB6iJc5OMT50o4nQGOvHRkKKXc9NF2ciuF/FX xrrQ== 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; bh=9ow7DuOeX0gyZUNRFr6LW45l7kMGj0yWYPJHBSrtT2Y=; b=aP2NnX+73l70mum8jzBDjvTv+TxZu/BuZAScMcAL+63ymahbx0TFxeO484/NRv+Rox Ld3RkczawWoaHmi3eZlvc0eRlJneL1Ayp7Tk5JuMDPKHw1lcLSpKUjCDgNS+qsi9jHoz GvNDilXPmsd56j9hEW+JAvcptDH9ILPpHAdxFSn6yFWUht64NhhSbh5hsfXq/D2V49ft oTfMc+17K8Ot3zkGeq0pyRSF1vw5QfATABoIb1suW4pxTeEhnt6j7lKa6EgsHDOOB5YX iXJ/ZEZ7bpX78E+Mb45+WT7yb4ip5KXC9xEW27Rf3Y7t1LKUAKl7xp3pH/2Jra+5b7ro l9Rg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13si10727339ejb.98.2019.10.14.02.35.48; Mon, 14 Oct 2019 02:36:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730937AbfJNJf2 (ORCPT + 99 others); Mon, 14 Oct 2019 05:35:28 -0400 Received: from gate.crashing.org ([63.228.1.57]:43596 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730667AbfJNJf1 (ORCPT ); Mon, 14 Oct 2019 05:35:27 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x9E9Z2cq027678; Mon, 14 Oct 2019 04:35:02 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x9E9Z1ac027677; Mon, 14 Oct 2019 04:35:01 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Mon, 14 Oct 2019 04:35:01 -0500 From: Segher Boessenkool To: Nathan Chancellor Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , clang-built-linux@googlegroups.com, Nick Desaulniers , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 3/3] powerpc/prom_init: Use -ffreestanding to avoid a reference to bcmp Message-ID: <20191014093501.GE28442@gate.crashing.org> References: <20190911182049.77853-1-natechancellor@gmail.com> <20191014025101.18567-1-natechancellor@gmail.com> <20191014025101.18567-4-natechancellor@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191014025101.18567-4-natechancellor@gmail.com> User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 13, 2019 at 07:51:01PM -0700, Nathan Chancellor wrote: > r374662 gives LLVM the ability to convert certain loops into a reference > to bcmp as an optimization; this breaks prom_init_check.sh: When/why does LLVM think this is okay? This function has been removed from POSIX over a decade ago (and before that it always was marked as legacy). Segher