mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 13:30:06 +00:00
conform: Do not use __SIG_ATOMIC_TYPE__
clang does not define __SIG_ATOMIC_TYPE__, instead add another directive ('size:') which instruct to use an interger type of defined minimum size.
This commit is contained in:
parent
a060642922
commit
faae5301b6
@ -172,6 +172,10 @@ class ConstantTest(object):
|
||||
c_type = self.c_type[len('promoted:'):]
|
||||
text = ('__typeof__ ((%s) 0 + (%s) 0) a2_%d;\n'
|
||||
% (c_type, c_type, self.num))
|
||||
elif self.c_type.startswith('size:'):
|
||||
c_type = "int{}_t".format(self.c_type[len('size:'):])
|
||||
text = ('__typeof__ ((%s) 0 + (%s) 0) a2_%d;\n'
|
||||
% (c_type, c_type, self.num))
|
||||
else:
|
||||
text = '__typeof__ ((%s) 0) a2_%d;\n' % (self.c_type, self.num)
|
||||
text += 'extern __typeof__ (%s) a2_%d;\n' % (self.symbol, self.num)
|
||||
|
@ -88,8 +88,8 @@ macro-int-constant UINTMAX_MAX {promoted:uintmax_t} >= 18446744073709551615ULL
|
||||
macro-int-constant PTRDIFF_MIN {promoted:__PTRDIFF_TYPE__} <= -65535
|
||||
macro-int-constant PTRDIFF_MAX {promoted:__PTRDIFF_TYPE__} >= 65535
|
||||
|
||||
macro-int-constant SIG_ATOMIC_MIN {promoted:__SIG_ATOMIC_TYPE__}
|
||||
macro-int-constant SIG_ATOMIC_MAX {promoted:__SIG_ATOMIC_TYPE__} >= 127
|
||||
macro-int-constant SIG_ATOMIC_MIN {size:__SIG_ATOMIC_WIDTH__}
|
||||
macro-int-constant SIG_ATOMIC_MAX {size:__SIG_ATOMIC_WIDTH__} >= 127
|
||||
|
||||
macro-int-constant SIZE_MAX {promoted:__SIZE_TYPE__} >= 65535
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user