@@ -67,8 +67,8 @@ STATIC_ASSERT(__builtin_types_compatible_p(typeof (hot) *, int *));
6767STATIC_ASSERT (__builtin_types_compatible_p (typeof (hot ), typeof (janette )));
6868STATIC_ASSERT (__builtin_types_compatible_p (__int128 , signed __int128 ));
6969
70- #ifndef __clang__
7170// clang doesn't have these
71+ #if !defined(__clang__ ) && __GNUC__ >= 7
7272#if defined(__x86_64__ ) || defined(__i386__ )
7373STATIC_ASSERT (__builtin_types_compatible_p (__float128 , _Float128 ));
7474#endif
@@ -95,16 +95,19 @@ STATIC_ASSERT(!__builtin_types_compatible_p(long int, int));
9595STATIC_ASSERT (!__builtin_types_compatible_p (long long int , long int ));
9696STATIC_ASSERT (!__builtin_types_compatible_p (unsigned , signed ));
9797
98- #ifndef __clang__
98+ STATIC_ASSERT (!__builtin_types_compatible_p (__int128 , unsigned __int128 ));
99+
99100// clang doesn't have these
101+ #if !defined(__clang__ )
102+ #if __GNUC__ >= 7
100103STATIC_ASSERT (!__builtin_types_compatible_p (_Float32 , float ));
101104STATIC_ASSERT (!__builtin_types_compatible_p (_Float64 , double ));
102105STATIC_ASSERT (!__builtin_types_compatible_p (_Float32x , float ));
103106STATIC_ASSERT (!__builtin_types_compatible_p (_Float64x , double ));
107+ #endif
104108STATIC_ASSERT (!__builtin_types_compatible_p (__float80 , double ));
105109STATIC_ASSERT (!__builtin_types_compatible_p (__float128 , long double ));
106110STATIC_ASSERT (!__builtin_types_compatible_p (__float128 , double ));
107- STATIC_ASSERT (!__builtin_types_compatible_p (__int128 , unsigned __int128 ));
108111#endif
109112#endif
110113
0 commit comments