about summary refs log tree commit diff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-12-19 05:37:29 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-12-19 05:39:34 -0800
commit9cd4d4abdca1329cde5ee3dcc963b8533678551e (patch)
tree21b3cb03673f5d8e91937275ba65db7e5c9bf370 /sysdeps/x86_64
parentc9c1a2d02cf344697c08075a44c170f771ebc6b2 (diff)
downloadglibc-9cd4d4abdca1329cde5ee3dcc963b8533678551e.tar.gz
glibc-9cd4d4abdca1329cde5ee3dcc963b8533678551e.tar.xz
glibc-9cd4d4abdca1329cde5ee3dcc963b8533678551e.zip
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.
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r--sysdeps/x86_64/x32/Makefile6
1 files changed, 6 insertions, 0 deletions
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