[1/3] conform: Add C23 checks for <stdint.h>

Message ID 20250413231200.549774-1-collin.funk1@gmail.com (mailing list archive)
State New
Headers
Series [1/3] conform: Add C23 checks for <stdint.h> |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Test passed

Commit Message

Collin Funk April 13, 2025, 11:11 p.m. UTC
  Signed-off-by: Collin Funk <collin.funk1@gmail.com>
---
 conform/data/stdint.h-data | 101 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 100 insertions(+), 1 deletion(-)
  

Patch

diff --git a/conform/data/stdint.h-data b/conform/data/stdint.h-data
index 5d65d4ecd5..d65e927398 100644
--- a/conform/data/stdint.h-data
+++ b/conform/data/stdint.h-data
@@ -35,69 +35,168 @@  type uintmax_t
 
 macro-int-constant INT8_MIN {promoted:int8_t} == -128
 macro-int-constant INT8_MAX {promoted:int8_t} == 127
+#if defined ISO23
+macro-int-constant INT8_WIDTH == 8
+#endif
 macro-int-constant INT16_MIN {promoted:int16_t} == -32768
 macro-int-constant INT16_MAX {promoted:int16_t} == 32767
+#if defined ISO23
+macro-int-constant INT16_WIDTH == 16
+#endif
 macro-int-constant INT32_MIN {promoted:int32_t} == -2147483647-1
 macro-int-constant INT32_MAX {promoted:int32_t} == 2147483647
+#if defined ISO23
+macro-int-constant INT32_WIDTH == 32
+#endif
 macro-int-constant INT64_MIN {promoted:int64_t} == -9223372036854775807LL-1
 macro-int-constant INT64_MAX {promoted:int64_t} == 9223372036854775807LL
+#if defined ISO23
+macro-int-constant INT64_WIDTH == 64
+#endif
 
 macro-int-constant UINT8_MAX {promoted:uint8_t} == 255
+#if defined ISO23
+macro-int-constant UINT8_WIDTH == 8
+#endif
 macro-int-constant UINT16_MAX {promoted:uint16_t} == 65535
+#if defined ISO23
+macro-int-constant UINT16_WIDTH == 16
+#endif
 macro-int-constant UINT32_MAX {promoted:uint32_t} == 4294967295U
+#if defined ISO23
+macro-int-constant UINT32_WIDTH == 32
+#endif
 macro-int-constant UINT64_MAX {promoted:uint64_t} == 18446744073709551615ULL
+#if defined ISO23
+macro-int-constant UINT64_WIDTH == 64
+#endif
 
 macro-int-constant INT_LEAST8_MIN {promoted:int_least8_t} <= -128
 macro-int-constant INT_LEAST8_MAX {promoted:int_least8_t} >= 127
+#if defined ISO23
+macro-int-constant INT_LEAST8_WIDTH >= 8
+#endif
 macro-int-constant INT_LEAST16_MIN {promoted:int_least16_t} <= -32768
 macro-int-constant INT_LEAST16_MAX {promoted:int_least16_t} >= 32767
+#if defined ISO23
+macro-int-constant INT_LEAST16_WIDTH >= 16
+#endif
 macro-int-constant INT_LEAST32_MIN {promoted:int_least32_t} <= -2147483647-1
 macro-int-constant INT_LEAST32_MAX {promoted:int_least32_t} >= 2147483647
+#if defined ISO23
+macro-int-constant INT_LEAST32_WIDTH >= 32
+#endif
 macro-int-constant INT_LEAST64_MIN {promoted:int_least64_t} <= -9223372036854775807LL-1
 macro-int-constant INT_LEAST64_MAX {promoted:int_least64_t} >= 9223372036854775807LL
+#if defined ISO23
+macro-int-constant INT_LEAST64_WIDTH >= 64
+#endif
 
 macro-int-constant UINT_LEAST8_MAX {promoted:uint_least8_t} >= 255
+#if defined ISO23
+macro-int-constant UINT_LEAST8_WIDTH >= 8
+#endif
 macro-int-constant UINT_LEAST16_MAX {promoted:uint_least16_t} >= 65535
+#if defined ISO23
+macro-int-constant UINT_LEAST16_WIDTH >= 16
+#endif
 macro-int-constant UINT_LEAST32_MAX {promoted:uint_least32_t} >= 4294967295U
+#if defined ISO23
+macro-int-constant UINT_LEAST32_WIDTH >= 32
+#endif
 macro-int-constant UINT_LEAST64_MAX {promoted:uint_least64_t} >= 18446744073709551615ULL
+#if defined ISO23
+macro-int-constant UINT_LEAST64_WIDTH >= 64
+#endif
 
 macro-int-constant INT_FAST8_MIN {promoted:int_fast8_t} <= -128
 macro-int-constant INT_FAST8_MAX {promoted:int_fast8_t} >= 127
+#if defined ISO23
+macro-int-constant INT_FAST8_WIDTH >= 8
+#endif
 macro-int-constant INT_FAST16_MIN {promoted:int_fast16_t} <= -32768
 macro-int-constant INT_FAST16_MAX {promoted:int_fast16_t} >= 32767
+#if defined ISO23
+macro-int-constant INT_FAST16_WIDTH >= 16
+#endif
 macro-int-constant INT_FAST32_MIN {promoted:int_fast32_t} <= -2147483647-1
 macro-int-constant INT_FAST32_MAX {promoted:int_fast32_t} >= 2147483647
+#if defined ISO23
+macro-int-constant INT_FAST32_WIDTH >= 32
+#endif
 macro-int-constant INT_FAST64_MIN {promoted:int_fast64_t} <= -9223372036854775807LL-1
 macro-int-constant INT_FAST64_MAX {promoted:int_fast64_t} >= 9223372036854775807LL
+#if defined ISO23
+macro-int-constant INT_FAST64_WIDTH >= 64
+#endif
 
 macro-int-constant UINT_FAST8_MAX {promoted:uint_fast8_t} >= 255
+#if defined ISO23
+macro-int-constant UINT_FAST8_WIDTH >= 8
+#endif
 macro-int-constant UINT_FAST16_MAX {promoted:uint_fast16_t} >= 65535
+#if defined ISO23
+macro-int-constant UINT_FAST16_WIDTH >= 16
+#endif
 macro-int-constant UINT_FAST32_MAX {promoted:uint_fast32_t} >= 4294967295U
+#if defined ISO23
+macro-int-constant UINT_FAST32_WIDTH >= 32
+#endif
 macro-int-constant UINT_FAST64_MAX {promoted:uint_fast64_t} >= 18446744073709551615ULL
+#if defined ISO23
+macro-int-constant UINT_FAST64_WIDTH >= 64
+#endif
 
 macro-int-constant INTPTR_MIN {promoted:intptr_t} <= -32768
 macro-int-constant INTPTR_MAX {promoted:intptr_t} >= 32767
+#if defined ISO23
+macro-int-constant INTPTR_WIDTH >= 16
+#endif
 
 macro-int-constant UINTPTR_MAX {promoted:uintptr_t} >= 65535
+#if defined ISO23
+macro-int-constant UINTPTR_WIDTH >= 16
+#endif
 
 macro-int-constant INTMAX_MIN {promoted:intmax_t} <= -9223372036854775807LL-1
 macro-int-constant INTMAX_MAX {promoted:intmax_t} >= 9223372036854775807LL
+#if defined ISO23
+macro-int-constant INTMAX_WIDTH >= 64
+#endif
 
 macro-int-constant UINTMAX_MAX {promoted:uintmax_t} >= 18446744073709551615ULL
+#if defined ISO23
+macro-int-constant UINTMAX_WIDTH >= 64
+#endif
 
 macro-int-constant PTRDIFF_MIN {promoted:__PTRDIFF_TYPE__} <= -65535
 macro-int-constant PTRDIFF_MAX {promoted:__PTRDIFF_TYPE__} >= 65535
+#if defined ISO23
+macro-int-constant PTRDIFF_WIDTH >= 16
+#endif
 
 macro-int-constant SIG_ATOMIC_MIN {size:__SIG_ATOMIC_WIDTH__}
 macro-int-constant SIG_ATOMIC_MAX {size:__SIG_ATOMIC_WIDTH__} >= 127
+#if defined ISO23
+macro-int-constant SIG_ATOMIC_WIDTH >= 8
+#endif
 
 macro-int-constant SIZE_MAX {promoted:__SIZE_TYPE__} >= 65535
+#if defined ISO23
+macro-int-constant SIZE_WIDTH >= 16
+#endif
 
 macro-int-constant WCHAR_MIN {promoted:__WCHAR_TYPE__}
 macro-int-constant WCHAR_MAX {promoted:__WCHAR_TYPE__} >= 127
+#if defined ISO23
+macro-int-constant WCHAR_WIDTH >= 8
+#endif
 
 macro-int-constant WINT_MIN {promoted:__WINT_TYPE__}
-macro-int-constant WINT_MAX {promoted:__WINT_TYPE__} >= 127
+macro-int-constant WINT_MAX {promoted:__WINT_TYPE__} >= 32767
+#if defined ISO23
+macro-int-constant WINT_WIDTH >= 16
+#endif
 
 macro INT8_C
 macro INT16_C