]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix gen-tgmath-tests.py for _Float64, _Float64x testing.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 24 Nov 2017 21:22:34 +0000 (21:22 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 24 Nov 2017 21:22:34 +0000 (21:22 +0000)
math/gen-tgmath-tests.py was missing a create_type argument when
creating the internal types for combinations of long double with
_Float64 and _Float64x, so resulting in output that did not compile
when glibc support for those types was enabled.  This patch adds the
missing argument so that the tests properly compile in that case.

Tested for x86_64, including in conjunction with _Float64x support
patches.

* math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
for combinations of long double with _Float64 and _Float64x.

ChangeLog
math/gen-tgmath-tests.py

index 70e9a00fc20cfe558d14a035c6b4e533cab0ed92..2a65383f12fdfe3ab7ac824b10e33b225d1f7591 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
 
+       * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
+       for combinations of long double with _Float64 and _Float64x.
+
        * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
        (__DECL_SIMD_cosf32): Likewise.
        (__DECL_SIMD_cosf64): Likewise.
index 88307a7841c5969211554856274c9971a58c6314..55e9accb60dda4f3e5229a3d239dc316661acd29 100755 (executable)
@@ -203,11 +203,11 @@ class Type(object):
         # Internal types represent the combination of long double with
         # _Float64 or _Float64x, for which the ordering depends on
         # whether long double has the same format as double.
-        Type.create_type('long_double_Float64', 'LDBL_MANT_DIG',
+        Type.create_type('long_double_Float64', None, 'LDBL_MANT_DIG',
                          complex_name='complex_long_double_Float64',
                          condition='defined HUGE_VAL_F64', order=(6, 7),
                          internal=True)
-        Type.create_type('long_double_Float64x', 'FLT64X_MANT_DIG',
+        Type.create_type('long_double_Float64x', None, 'FLT64X_MANT_DIG',
                          complex_name='complex_long_double_Float64x',
                          condition='defined HUGE_VAL_F64X', order=(7, 7),
                          internal=True)