@@ -67,8 +67,8 @@ STATIC_ASSERT(__builtin_types_compatible_p(typeof (hot) *, int *));
67
67
STATIC_ASSERT (__builtin_types_compatible_p (typeof (hot ), typeof (janette )));
68
68
STATIC_ASSERT (__builtin_types_compatible_p (__int128 , signed __int128 ));
69
69
70
- #ifndef __clang__
71
70
// clang doesn't have these
71
+ #if !defined(__clang__ ) && __GNUC__ >= 7
72
72
#if defined(__x86_64__ ) || defined(__i386__ )
73
73
STATIC_ASSERT (__builtin_types_compatible_p (__float128 , _Float128 ));
74
74
#endif
@@ -95,16 +95,19 @@ STATIC_ASSERT(!__builtin_types_compatible_p(long int, int));
95
95
STATIC_ASSERT (!__builtin_types_compatible_p (long long int , long int ));
96
96
STATIC_ASSERT (!__builtin_types_compatible_p (unsigned , signed ));
97
97
98
- #ifndef __clang__
98
+ STATIC_ASSERT (!__builtin_types_compatible_p (__int128 , unsigned __int128 ));
99
+
99
100
// clang doesn't have these
101
+ #if !defined(__clang__ )
102
+ #if __GNUC__ >= 7
100
103
STATIC_ASSERT (!__builtin_types_compatible_p (_Float32 , float ));
101
104
STATIC_ASSERT (!__builtin_types_compatible_p (_Float64 , double ));
102
105
STATIC_ASSERT (!__builtin_types_compatible_p (_Float32x , float ));
103
106
STATIC_ASSERT (!__builtin_types_compatible_p (_Float64x , double ));
107
+ #endif
104
108
STATIC_ASSERT (!__builtin_types_compatible_p (__float80 , double ));
105
109
STATIC_ASSERT (!__builtin_types_compatible_p (__float128 , long double ));
106
110
STATIC_ASSERT (!__builtin_types_compatible_p (__float128 , double ));
107
- STATIC_ASSERT (!__builtin_types_compatible_p (__int128 , unsigned __int128 ));
108
111
#endif
109
112
#endif
110
113
0 commit comments