Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2546296ybv; Fri, 21 Feb 2020 18:08:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwFHqSVRAY6nnVG6vfRpTp4irPUcD19kYHStoNpweSgOouI26MTTPeUybE9WT1gggcD7RH9 X-Received: by 2002:aca:dd05:: with SMTP id u5mr4527379oig.91.1582337309277; Fri, 21 Feb 2020 18:08:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582337309; cv=none; d=google.com; s=arc-20160816; b=mgIctPxSKeJoOZqZ45Y27dAEAw49LY9WZ3YGAniwlRRizB6e6OsM8ocpH8rhaBb4vJ AO7DiirhoObAToeEqVNNA3Rka5T2JyfHRigdHYLw/B1VqvGx41/wqIrGj16ynMqsGjsQ ZcYYaADAb3CqzzjFjDmkJQRVSQlInrhAioMPawz+5z9DuJn9Hv68GkSGRJAuKTbra2gS qGSG9bg9lyOaxR0HEE0BGjw75ohgU6Am0P2+0IDhc/EQZLBfJjNotNovKGUqTAE73VcF uDlpDB6YYrqbdQU22wjCBXgy70bHczEF/yAX1gh27MPnWjHtPD0BQu8Appday3Pz9K6b qTXA== 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:dkim-filter; bh=TYeg4Bu2Cm4zg+SosHfJhXDl9NaBkIe9vTu10xXiyPY=; b=lHSTOqpW2TIkk9tnKEsMMkf/GtvpgM9FfKsnoSRmfLMTvz8G6/r0RNmCNa1v9olbq0 HxFSuPZBAtiU+kL1IcZt5boFLTrrhpXhB6lQXewMDlLqkATS1lvRYF+D2wo0vjb6IjA8 v+n7bXEQBitj4JaeT9+Uu7DoyYgp5k6csDLqlmKMQowyJ+UdE1TTy8AhZEzqdXCMP4ax j825VD+S4CjID2f9a/HT710i9/xInnQgFoEPUnCKTZrtF0w4/kdIwHSNSns1vIQ9Q1M0 KRne81no1ez4qADvlQlxPvCOub/wQLCwqXRNm0T/u7Ri1SSFEanT6+FWIY2Y7DmyC8iu XLdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=siBi6422; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si2285850oti.291.2020.02.21.18.08.14; Fri, 21 Feb 2020 18:08:29 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=siBi6422; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727891AbgBVCIH (ORCPT + 99 others); Fri, 21 Feb 2020 21:08:07 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:36492 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727614AbgBVCIH (ORCPT ); Fri, 21 Feb 2020 21:08:07 -0500 Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 01M27pq0019695; Sat, 22 Feb 2020 11:07:52 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 01M27pq0019695 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1582337272; bh=TYeg4Bu2Cm4zg+SosHfJhXDl9NaBkIe9vTu10xXiyPY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=siBi6422Adl4HyJFo6ewKwOUC7vv5+/KDzMJ27mMmcDRzcp/pXJ9cJFZhP/MkfcwG ADTyFeI6bBNqEVcQ+fxVnsuJdRr86WSfv0CaOkj7oKh9unZ754Xs948LPk3vTjmy8O ZHCJ+eTaRZ3bPxVp2sSWWKZtwU3MbxzQzXY2qkpSFMNxTJiz9pKjZpEqRhHXOyT4Z7 mUtrFUBKiX35d81vaYtzrata8Z3T7c/qYTTdX/1RdDyOvSW+hX8lj2gVyeGeFbpTlz TMRkI3QK8gsTsU4qpK9CrDU5vltT9uc5s7BsT8efaRsN3muLh+tkVAuBxOorB3xULL vmpLFciOtq7iw== X-Nifty-SrcIP: [209.85.222.48] Received: by mail-ua1-f48.google.com with SMTP id l6so1372325uap.13; Fri, 21 Feb 2020 18:07:51 -0800 (PST) X-Gm-Message-State: APjAAAWOjKhjRf4/GWkEtGsJ3NTpbSdtbZx96deCbe46u+x4OOTQLlOa xwpZe8jgQpWdNq07jddAspgOSu6Rn3kVtH5ByK4= X-Received: by 2002:ab0:2ea6:: with SMTP id y6mr20800352uay.25.1582337270650; Fri, 21 Feb 2020 18:07:50 -0800 (PST) MIME-Version: 1.0 References: <20200222003820.220854-1-alex_y_xu.ref@yahoo.ca> <20200222003820.220854-1-alex_y_xu@yahoo.ca> In-Reply-To: <20200222003820.220854-1-alex_y_xu@yahoo.ca> From: Masahiro Yamada Date: Sat, 22 Feb 2020 11:07:14 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: move -pipe to global KBUILD_CFLAGS To: "Alex Xu (Hello71)" Cc: Linux Kbuild mailing list , Michal Marek , Linux Kernel Mailing List , Russell King 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 Sat, Feb 22, 2020 at 9:40 AM Alex Xu (Hello71) wrote: > > -pipe reduces unnecessary disk wear for systems where /tmp is not a > tmpfs, slightly increases compilation speed, and avoids leaving behind > files when gcc crashes. > > According to the gcc manual, "this fails to work on some systems where > the assembler is unable to read from a pipe; but the GNU assembler has > no trouble". We already require GNU ld on all platforms, so this is not > an additional dependency. LLVM as also supports pipes. > > -pipe has always been used for most architectures, this change > standardizes it globally. Most notably, arm, arm64, riscv, and x86 are > affected. > > Signed-off-by: Alex Xu (Hello71) > diff --git a/arch/arc/Makefile b/arch/arc/Makefile > index 20e9ab6cc521..b6a2f553771c 100644 > --- a/arch/arc/Makefile > +++ b/arch/arc/Makefile > @@ -9,7 +9,7 @@ ifeq ($(CROSS_COMPILE),) > CROSS_COMPILE := $(call cc-cross-prefix, arc-linux- arceb-linux-) > endif > > -cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__ > +cflags-y += -fno-common -fno-builtin -mmedium-calls -D__linux__ > cflags-$(CONFIG_ISA_ARCOMPACT) += -mA7 > cflags-$(CONFIG_ISA_ARCV2) += -mcpu=hs38 > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index db857d07114f..7711467e0797 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -21,7 +21,6 @@ KBUILD_LDS_MODULE += $(srctree)/arch/arm/kernel/module.lds > endif > > GZFLAGS :=-9 > -#KBUILD_CFLAGS +=-pipe This was commented out by a very old commit, which is available in the historical git tree. https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=ce20ed858a20f6f04de475cae79e40d3697f4776 But, I could not parse the reason from the commit message. Russell, do you remember why? If arch maintainers are fine with this change, I can pick up it. Thanks. -- Best Regards Masahiro Yamada