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.
This commit is contained in:
H.J. Lu 2014-12-19 05:37:29 -08:00
parent c9c1a2d02c
commit 9cd4d4abdc
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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