This reverts commit
4912487a42ec9ab1f7ab7bcca698c50a849eafa8.
__muldc3 is implemented by lib-compiler-rt for clang, and emitting calls
to it is normal. While -ffast-math prevents these calls, it also enables
unsafe optimizations that might result in wrong results from math
functions.
Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #46
LIBMUSL_CFLAGS-$(call gcc_version_ge,8,0) += -Wno-cast-function-type
LIBMUSL_CFLAGS-y += -Wno-format-contains-nul
LIBMUSL_CFLAGS-y += -Wno-type-limits
-ifeq ($(CONFIG_LIBMUSL_COMPLEX),y)
-LIBMUSL_CFLAGS-$(call have_clang) += -ffast-math
-endif
LIBMUSL_CFLAGS-y += -DUK_LIBC_SYSCALL=0
LIBMUSL_CFLAGS-y += -D_XOPEN_SOURCE=700
LIBMUSL_CFLAGS-y += $(LIBMUSL_HDRS_FLAGS-y)