From: "Arnd Bergmann" <arnd@arndb.de>
To: "Vineet Gupta" <vgupta@kernel.org>, linux-snps-arc@lists.infradead.org
Cc: linux-kernel@vger.kernel.org, "Dinh Nguyen" <dinguyen@kernel.org>,
"schuster.simon@siemens-energy.com"
<schuster.simon@siemens-energy.com>
Subject: Re: [PATCH v2] ARC: stop linking libgcc
Date: Mon, 23 Nov 2026 10:02:18 +0100 [thread overview]
Message-ID: <65dc77ce-395b-44b9-ad03-601d06c1040a@app.fastmail.com> (raw)
In-Reply-To: <20261123000645.2097033-1-vgupta@kernel.org>
On Mon, Nov 23, 2026, at 01:06, Vineet Gupta wrote:
> With the generic lib/ versions of the shift/multiply/compare helpers,
> the 32-bit divide routines (only needed without hardware div/rem) and
> clz/ctz all provided by the kernel, and the 64/64 divide and floating
> point routines gone, nothing in the kernel or modules resolves against
> libgcc any more.
>
> Drop it from the link so that any new dependency on it (e.g. a raw
> 64-bit division instead of div_u64()) shows up as a build failure
> rather than silently pulling in libgcc code.
>
> libgcc elision can break -Os builds as older gcc generate millicode
> thunks: disable them with -mno-millicode.
>
> Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Thanks, I have updated the asm-generic tree to use this version now.
Arnd
prev parent reply other threads:[~2026-11-23 9:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 0:06 Vineet Gupta
2026-11-23 9:02 ` Arnd Bergmann [this message]
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=65dc77ce-395b-44b9-ad03-601d06c1040a@app.fastmail.com \
--to=arnd@arndb.de \
--cc=dinguyen@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-snps-arc@lists.infradead.org \
--cc=schuster.simon@siemens-energy.com \
--cc=vgupta@kernel.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
all inboxes | Powered by JetHome®