]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Compile s_llround.c with -Wno-error for x32 build
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Dec 2014 13:37:29 +0000 (05:37 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Dec 2014 13:39:34 +0000 (05:39 -0800)
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.

ChangeLog
sysdeps/x86_64/x32/Makefile [new file with mode: 0644]

index eda51f8e6b3165347af9f6e8dfada41cdbdd45fe..4c6a3049f02aa14a881beee946c5ce8f327a9ddd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/x86_64/x32/Makefile: New file.
+
 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
diff --git a/sysdeps/x86_64/x32/Makefile b/sysdeps/x86_64/x32/Makefile
new file mode 100644 (file)
index 0000000..47e567c
--- /dev/null
@@ -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