mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>, X86 ML <x86@kernel.org>,
	Michal Marek <michal.lkml@markovi.net>
Subject: Re: [PATCH] kbuild: Disable extra debugging info in .s output
Date: Fri, 1 Feb 2019 16:11:39 +0100	[thread overview]
Message-ID: <20190201151139.GK31854@zn.tnic> (raw)
In-Reply-To: <CAK7LNAQ4juLxrdMoPumQQ-96fMorf+wfAqkNxq1X1k=0i_R4vQ@mail.gmail.com>

On Fri, Feb 01, 2019 at 08:58:13PM +0900, Masahiro Yamada wrote:
> Variables assigned with ':=' are evaluated just on parsing Makefile.
> 
> The scripts/Makefile.build is parsed over and over again,
> so the compiler is invoked hundreds times to test these four options
> even when you are not actually building any new objects.
> 
> It is mitigated by replacing ':=' with '=',
> but they are still evaluated multiple times when generating asm-offset.

Now that you mention it, how about ?=

disable_extra_cc_dbg ?= $(call cc-option,-gno-as-locview-support)
disable_extra_cc_dbg += $(call cc-option,-fno-dwarf2-cfi-asm)
disable_extra_cc_dbg += $(call cc-option,-feliminate-unused-debug-symbols)
disable_extra_cc_dbg += $(call cc-option,-gno-statement-frontiers)

With it, the slowdown of the incremental build is ~0.2s (on an old laptop):

defconfig without:	9.6128 +- 0.0327 seconds time elapsed  ( +-  0.34% )

vs

defconfig with:		9.8483 +- 0.0273 seconds time elapsed  ( +-  0.28% )


-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

  reply	other threads:[~2019-02-01 15:11 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-21  9:53 Borislav Petkov
2019-01-31 11:58 ` Borislav Petkov
2019-02-01  3:06   ` Masahiro Yamada
2019-02-01  9:42     ` Borislav Petkov
2019-02-01 10:09       ` Masahiro Yamada
2019-02-01 10:23         ` Borislav Petkov
2019-02-01 11:03           ` Masahiro Yamada
2019-02-01 10:30         ` Borislav Petkov
2019-02-01 10:36           ` Borislav Petkov
2019-02-01 11:58             ` Masahiro Yamada
2019-02-01 15:11               ` Borislav Petkov [this message]
2019-02-02 13:48                 ` Masahiro Yamada
2019-02-02 14:42                   ` Borislav Petkov
2019-02-06 10:47                     ` Borislav Petkov
2019-02-10  6:51                       ` Masahiro Yamada
2019-02-10 12:39                         ` Borislav Petkov
2019-02-18  8:30                           ` Borislav Petkov
2019-02-18  9:10                             ` Masahiro Yamada
2019-02-18 14:31                               ` Borislav Petkov
2019-02-19 23:55                                 ` Masahiro Yamada
2019-02-01 10:51           ` Masahiro Yamada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190201151139.GK31854@zn.tnic \
    --to=bp@alien8.de \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.lkml@markovi.net \
    --cc=x86@kernel.org \
    --cc=yamada.masahiro@socionext.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®