Linux kbuild/kconfig development
 help / color / mirror / Atom feed
From: Josh Poimboeuf <jpoimboe@kernel.org>
To: arnold@skeeve.com
Cc: peterz@infradead.org, nathan@kernel.org, linux-kbuild@vger.kernel.org
Subject: Re: Use of `gawk -M' in kernel build scripts
Date: Sat, 21 Nov 2026 23:11:10 -0800	[thread overview]
Message-ID: <awKVHTlHymhuIca2@jpoimboe> (raw)
In-Reply-To: <202610131441.69DEfUAv037813@freefriends.org>

On Tue, Oct 13, 2026 at 08:41:30AM -0600, arnold@skeeve.com wrote:
> Peter Zijlstra <peterz@infradead.org> wrote:
> 
> > On Mon, Oct 05, 2026 at 10:53:32AM +0200, Nathan Chancellor wrote:
> > > Hi Aharon,
> > > 
> > > On Sun, Oct 04, 2026 at 09:26:58PM +0300, Aharon Robbins wrote:
> > > > I'm the maintainer for gawk. I see that it's used in the kernel build
> > > > scripts in combination with objdump.
> > > 
> > > For the record, the only place where I see '-M' used with gawk is in
> > > scripts/objdump-func, which is not called during the kernel build
> > > thankfully.
> > > 
> > > > In particular, I note that gawk is invoked with the -M option, which
> > > > uses MPFR for arithmetic (although the precision isn't changed beyond
> > > > the default which is the same as for IEEE hardware floating point).
> > > > 
> > > > I am wondering if the -M option is really needed here?  The reason I
> > > > ask is that I plan to deprecate MPFR support. The upcoming 6.0 release
> > > > (I hope in Q2 2027) will issue a deprecation warning when -M is used,
> > > > and 6.1 (late 2027 or early 2028, I hope) will have MPFR support removed
> > > > entirely.
> > > > 
> > > > So, I wanted to give you folks a heads-up. If -M isn't needed, now's a good
> > > > time to remove its use from the kernel build.
> > > 
> > > Adding Josh and Peter for the rest of this since they have
> > > added/supported this script.
> >
> > I'm not sure; Josh added that when he did the upstream version. My
> > initial version very much does not have that -M on. Josh?
> 
> Thanks Peter.  Josh, looking forward to hearing from you.

IIRC, I added the -M for doing 64-bit arithmetic, but really only the
lower 32-bits are needed for computing function offsets, so yeah, I'll
fix that up.

-- 
Josh

  reply	other threads:[~2026-11-22  7:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-04 18:26 Use of `gawk -M' in kernel build scripts Aharon Robbins
2026-10-05  8:53 ` Nathan Chancellor
2026-10-05  9:02   ` arnold
2026-10-08  7:29     ` arnold
2026-10-13  9:19   ` Peter Zijlstra
2026-10-13 14:41     ` arnold
2026-11-22  7:11       ` Josh Poimboeuf [this message]
2026-11-22 11:39         ` arnold

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=awKVHTlHymhuIca2@jpoimboe \
    --to=jpoimboe@kernel.org \
    --cc=arnold@skeeve.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=nathan@kernel.org \
    --cc=peterz@infradead.org \
    /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