From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Wed, 14 Jan 2015 11:48:27 +0000 Subject: [PATCH] arm64: kill off the libgcc dependency In-Reply-To: <3138622.1rQcFu1jAj@wuerfel> References: <1421231934-31720-1-git-send-email-haokexin@gmail.com> <20150114104826.GD4050@arm.com> <3138622.1rQcFu1jAj@wuerfel> Message-ID: <20150114114827.GH4050@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Jan 14, 2015 at 11:35:22AM +0000, Arnd Bergmann wrote: > On Wednesday 14 January 2015 10:48:26 Will Deacon wrote: > > On Wed, Jan 14, 2015 at 10:38:54AM +0000, Kevin Hao wrote: > > > The arm64 doesn't depend on the libgcc to build the vmlinux image. > > > > Yes it does; we make use of __builtin_* for our bitops, for example. > > The compiler guys don't guarantee that these will be inlined. > > Is that an architecture-specific statement? I think the inlining guarantees apply to all architectures, but it affects the arm64 kernel because we include . > The debate has been going on for ages in Linux, most architecture > maintainers however decided against using libgcc and copy the functions > that are actually needed into the kernel sources. What's the benefit of copying them? Will