Re: [PATCH v2] LoongArch: Replace -ffreestanding with finer-grained -fno-builtin's

From: Nick Desaulniers
Date: Mon Aug 07 2023 - 11:56:48 EST


On Mon, Aug 7, 2023 at 12:17 AM Xi Ruoyao <xry111@xxxxxxxxxxx> wrote:
>
> On Sun, 2023-08-06 at 18:31 +0800, WANG Xuerui wrote:
> > > > +cflags-y += -fno-builtin-memcpy -fno-builtin-memmove -fno-builtin-memset
>
> Can we only apply them for GCC <= 13? I think with GCC 14 the built-in
> implementations are quite reasonable (well, maybe it's some human ego
> because I wrote them :).

Yes, and because only GCC-13 and older users should pay that penalty.

--
Thanks,
~Nick Desaulniers