mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-14 01:00:07 +00:00
42df8d5921
When a tgmath.h macro is passed a double argument and an argument of type __int128, it generates a call to a long double function (although the result still gets converted to type double). __int128 is similar enough to integer types that it should be handled consistently like them, so always like double for these macros rather than sometimes like double and sometimes like long double. This patch fixes the logic accordingly and makes gen-tgmath-tests.py generate tests for __int128. Tested for x86_64 and x86. [BZ #21686] * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before comparing size with that of double. (__TGMATH_BINARY_REAL_STD_ONLY): Likewise. (__TGMATH_BINARY_REAL_RET_ONLY): Likewise. (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise. (__TGMATH_TERNARY_REAL_ONLY): Likewise. (__TGMATH_BINARY_REAL_IMAG): Likewise. * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and unsigned __int128 types.
77 lines
2.9 KiB
Plaintext
77 lines
2.9 KiB
Plaintext
2017-08-02 Joseph Myers <joseph@codesourcery.com>
|
|
|
|
[BZ #21686]
|
|
* math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
|
|
comparing size with that of double.
|
|
(__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
|
|
(__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
|
|
(__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
|
|
(__TGMATH_TERNARY_REAL_ONLY): Likewise.
|
|
(__TGMATH_BINARY_REAL_IMAG): Likewise.
|
|
* math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
|
|
unsigned __int128 types.
|
|
|
|
2017-08-02 Steve Ellcey <sellcey@cavium.com>
|
|
|
|
* localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
|
|
CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
|
|
CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
|
|
CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
|
|
CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
|
|
|
|
2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
* sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
|
|
|
|
2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
* sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
|
|
of SHARED.
|
|
* sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
|
|
* sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
|
|
* sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
|
|
* sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
|
|
* sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
|
|
* sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
|
|
* sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
|
|
|
|
2017-08-02 Joseph Myers <joseph@codesourcery.com>
|
|
|
|
[BZ #21685]
|
|
* math/tgmath.h (__tgmath_real_type): Use unary + on potentially
|
|
bit-field expressions passed to sizeof or typeof.
|
|
[__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
|
|
(__TGMATH_F128): Likewise.
|
|
[__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
|
|
(__TGMATH_CF128): Likewise.
|
|
(__TGMATH_UNARY_REAL_ONLY): Likewise.
|
|
(__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
|
|
(__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
|
|
(__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
|
|
(__TGMATH_BINARY_REAL_ONLY): Likewise.
|
|
(__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
|
|
(__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
|
|
(__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
|
|
(__TGMATH_TERNARY_REAL_ONLY): Likewise.
|
|
(__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
|
|
(__TGMATH_UNARY_REAL_IMAG): Likewise.
|
|
(__TGMATH_UNARY_IMAG): Likewise.
|
|
(__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
|
|
(__TGMATH_BINARY_REAL_IMAG): Likewise.
|
|
* math/gen-tgmath-tests.py (Type.init_types): Create bit_field
|
|
type.
|
|
(define_vars_for_type): Handle bit_field type specially.
|
|
(Tests.__init__): Declare structure with bit-field element.
|
|
|
|
2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
[BZ #21791]
|
|
* sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
|
|
(MEMCPY_CHK): Define only if SHARED is defined.
|
|
* sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
|
|
Likewise.
|
|
* sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
|
|
Likewise.
|
|
|
|
See ChangeLog.18 for earlier changes.
|