]> git.proxmox.com Git - wasi-libc.git/commit
Remove -fno-builtin. (#104)
authorDan Gohman <sunfish@mozilla.com>
Fri, 11 Oct 2019 12:07:34 +0000 (05:07 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Oct 2019 12:07:34 +0000 (05:07 -0700)
commit78b86512246913028b4701fade4e9776bade3c4b
tree42e3f46789eb4cf2fd683d9a287a139d83a0796d
parent472b213bb6edb8189c61c594a2ea47dde819728b
Remove -fno-builtin. (#104)

* Remove -fno-builtin.

-fno-builtin suppresses optimizations such as turning calls to `sqrt`
or `fabs` into `f64.sqrt` or `f64.abs` instructions inline. Libc code
itself benefits from these optimizations.

I originally added this flag because historically it was needed when
building libc to avoid the compiler pattern-matching the body of memcpy
into a memcpy call, however clang no longer requires this.

* Expand the comment about why we use USE_DL_PREFIX in dlmalloc.
Makefile
dlmalloc/src/dlmalloc.c