From mboxrd@z Thu Jan 1 00:00:00 1970 From: haokexin@gmail.com (Kevin Hao) Date: Thu, 15 Jan 2015 15:07:30 +0800 Subject: [PATCH] arm64: kill off the libgcc dependency In-Reply-To: <20150114133742.GI4050@arm.com> References: <1421231934-31720-1-git-send-email-haokexin@gmail.com> <3138622.1rQcFu1jAj@wuerfel> <20150114114827.GH4050@arm.com> <2438951.7KFuXx85Hp@wuerfel> <20150114133742.GI4050@arm.com> Message-ID: <20150115070730.GA23621@pek-khao-d1.corp.ad.wrs.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Jan 14, 2015 at 01:37:42PM +0000, Will Deacon wrote: > On Wed, Jan 14, 2015 at 12:52:49PM +0000, Ard Biesheuvel wrote: > > IMO libgcc.a cannot be used at all in the kernel, as it is not built > > with -mgeneral-regs-only so we have no guarantee that it will leave > > the NEON registers alone. > > That's a very good point. In which case, we'd need to extend this patch > to implement the bitops that we currently rely on the __builtins for. Sorry, I am not sure I get what you mean. These builtin functions for bitops are not implemented in the libgcc, they are inlined in compiler. So why do we need to reimplement these bitops when removing the link with libgcc? Thanks, Kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 473 bytes Desc: not available URL: