From 9cd4d4abdca1329cde5ee3dcc963b8533678551e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 19 Dec 2014 05:37:29 -0800 Subject: Compile s_llround.c with -Wno-error for x32 build Since x32 returns 32-bit long int and 64-bit long long int in the same 64-bit register, we make the 32b-bit lround an alias of the 64-bit llround. Add -Wno-error for x32 build to silence the compiler. --- sysdeps/x86_64/x32/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sysdeps/x86_64/x32/Makefile (limited to 'sysdeps/x86_64') diff --git a/sysdeps/x86_64/x32/Makefile b/sysdeps/x86_64/x32/Makefile new file mode 100644 index 0000000000..47e567cfea --- /dev/null +++ b/sysdeps/x86_64/x32/Makefile @@ -0,0 +1,6 @@ +ifeq ($(subdir),math) +# Since x32 returns 32-bit long int and 64-bit long long int in the +# same 64-bit register, we make the 32b-bit lround an alias of the +# 64-bit llround. Add -Wno-error to silence the compiler. +CFLAGS-s_llround.c += -Wno-error +endif -- cgit 1.4.1