Re: [PATCH 0/4] -ffreestanding/-fno-builtin-* patches

From: Linus Torvalds
Date: Fri Aug 21 2020 - 15:30:08 EST


On Fri, Aug 21, 2020 at 12:15 PM Arvind Sankar <nivedita@xxxxxxxxxxxx> wrote:
>
> How are you testing it?
>
> https://godbolt.org/z/eahdGn

Ugh. I tested the reverse thing - that the builtin is still available
for manual use despite the -fno-builtin.

Because I - stupidly - assumed that fno-builtin would do *something*.

But if it's available for manual use _and_ it's used implicitly by the
compiler, then that was clearly very naive of me.

Linus