Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Feb 2021 22:08:07 +0000
From:      Alexander Richardson <arichardson@freebsd.org>
To:        Jessica Clarke <jrtc27@freebsd.org>
Cc:        Mateusz Guzik <mjg@freebsd.org>, src-committers <src-committers@freebsd.org>,  dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: 81e074d57dfc - main - libkern: use compiler builtins for strcpy, strcmp and strlen
Message-ID:  <CA%2BZ_v8q6DhnDNqc-Y%2BNap8HdErRaxgbqV4wVsRiZL%2B%2BrdMYMqg@mail.gmail.com>
In-Reply-To: <8F5A406F-FB06-4D52-8CD7-1DCE01B6C126@freebsd.org>
References:  <202102081915.118JFVS0067851@gitrepo.freebsd.org> <8F5A406F-FB06-4D52-8CD7-1DCE01B6C126@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 8 Feb 2021, 19:37 Jessica Clarke, <jrtc27@freebsd.org> wrote:

> On 8 Feb 2021, at 19:15, Mateusz Guzik <mjg@FreeBSD.org> wrote:
> >
> > The branch main has been updated by mjg:
> >
> > URL:
> https://cgit.FreeBSD.org/src/commit/?id=81e074d57dfcd86f152e2848dc44b77087ee7a2d
> >
> > commit 81e074d57dfcd86f152e2848dc44b77087ee7a2d
> > Author:     Mateusz Guzik <mjg@FreeBSD.org>
> > AuthorDate: 2021-02-07 19:50:25 +0000
> > Commit:     Mateusz Guzik <mjg@FreeBSD.org>
> > CommitDate: 2021-02-08 19:15:21 +0000
> >
> >    libkern: use compiler builtins for strcpy, strcmp and strlen
>
> Why?
>


I guess because the kernel uses -ffreestanding, so the libcall inlining
optimization requires explicit uses of __builtin_foo

Alex

>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BZ_v8q6DhnDNqc-Y%2BNap8HdErRaxgbqV4wVsRiZL%2B%2BrdMYMqg>