[libcxx-commits] [PATCH] D138629: [libc++][math.h] Add double overloads

Aaron Ballman via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 30 07:21:46 PST 2022


aaron.ballman added a comment.

In D138629#3960439 <https://reviews.llvm.org/D138629#3960439>, @philnik wrote:

> In D138629#3954442 <https://reviews.llvm.org/D138629#3954442>, @aaron.ballman wrote:
>
>>> 4. More generally speaking, what's the purpose of `-fno-builtins`?
>>
>> To disable all builtins regardless of whether you're in freestanding mode or not. Sometimes the builtins do things you don't want them to do and so you want to disable them (perhaps you don't like the behavior of `__builtin_memcpy` for some reason), and sometimes the builtins expose names you want to use (https://godbolt.org/z/cMxzojcr1).
>
> `__buitin_memcpy` works the same whether `-fno-builtins` is used or not, right? It's just that `memcpy` doesn't behave like `__builtin_memcpy`?

Correct, sorry for being unclear.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138629/new/

https://reviews.llvm.org/D138629



More information about the libcxx-commits mailing list