about summary refs log tree commit diff
path: root/REORG.TODO/sysdeps/x86_64/x32/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/sysdeps/x86_64/x32/Makefile')
-rw-r--r--REORG.TODO/sysdeps/x86_64/x32/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/REORG.TODO/sysdeps/x86_64/x32/Makefile b/REORG.TODO/sysdeps/x86_64/x32/Makefile
new file mode 100644
index 0000000000..f2ebc24fb0
--- /dev/null
+++ b/REORG.TODO/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 -fno-builtin-lround to silence the compiler.
+CFLAGS-s_llround.c += -fno-builtin-lround
+endif