diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-04-03 09:46:45 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-02-09 10:29:18 -0300 |
commit | b653089251680923461e1a54727453306be1b36b (patch) | |
tree | 6cca40601357a14334be9b6155295d4e0862314a /conform/conformtest.py | |
parent | e2b9b3c6693e22d1a66ac40472835ca2a537f7cd (diff) | |
download | glibc-b653089251680923461e1a54727453306be1b36b.tar glibc-b653089251680923461e1a54727453306be1b36b.tar.gz glibc-b653089251680923461e1a54727453306be1b36b.tar.bz2 glibc-b653089251680923461e1a54727453306be1b36b.zip |
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.
Diffstat (limited to 'conform/conformtest.py')
-rw-r--r-- | conform/conformtest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/conform/conformtest.py b/conform/conformtest.py index a43ab05a0a..b4fb6be442 100644 --- a/conform/conformtest.py +++ b/conform/conformtest.py @@ -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) |