Auto-generate files after cl/966337187

This commit is contained in:
Protobuf Team Bot 2026-08-18 03:47:16 +00:00
parent 857623168c
commit 80d472933a
5 changed files with 40 additions and 102 deletions

View file

@ -495,7 +495,7 @@ Error, UINTPTR_MAX is undefined
/* aarch64 supports big and little endian modes; fasttable performs multibyte
* tag loads assumes the tag of a varint is in the low bits. */
#if !defined(_WIN32) && (defined(__x86_64__) || defined(__AARCH64EL__)) && \
#if (defined(__x86_64__) || defined(__AARCH64EL__)) && \
UPB_HAS_ATTRIBUTE(preserve_none) && UPB_HAS_ATTRIBUTE(musttail)
#define UPB_FASTTABLE_SUPPORTED 1
#else
@ -514,11 +514,7 @@ Error, UINTPTR_MAX is undefined
* This is useful for releasing code that might be used on multiple platforms,
* for example the PHP or Ruby C extensions. */
#elif defined(UPB_TRY_ENABLE_FASTTABLE)
#if UPB_FASTTABLE_SUPPORTED
#define UPB_FASTTABLE 1
#else
#define UPB_FASTTABLE 0
#endif
#define UPB_FASTTABLE UPB_FASTTABLE_SUPPORTED
#else
#define UPB_FASTTABLE 0
#endif
@ -572,12 +568,6 @@ Error, UINTPTR_MAX is undefined
#define UPB_RETAIN
#endif
#if defined(__GNUC__) || defined(__clang__)
#define UPB_HIDDEN __attribute__((visibility("hidden")))
#else
#define UPB_HIDDEN
#endif
// Linker arrays combine elements from multiple translation units into a single
// array that can be iterated over at runtime.
//
@ -631,7 +621,7 @@ Error, UINTPTR_MAX is undefined
#elif defined(__MACH__)
/* As described in: https://stackoverflow.com/a/22366882 */
/* As described in: https://stackoverflow.com/a/22366882 */
#define UPB_LINKARR_APPEND(name) \
__attribute__(( \
section("__DATA,__la_" #name))) UPB_LINKARR_ATTR UPB_NO_SANITIZE_ADDRESS
@ -650,10 +640,10 @@ Error, UINTPTR_MAX is undefined
#elif defined(_MSC_VER)
/* See:
* https://devblogs.microsoft.com/oldnewthing/20181107-00/?p=100155
* https://devblogs.microsoft.com/oldnewthing/20181108-00/?p=100165
* https://devblogs.microsoft.com/oldnewthing/20181109-00/?p=100175 */
/* See:
* https://devblogs.microsoft.com/oldnewthing/20181107-00/?p=100155
* https://devblogs.microsoft.com/oldnewthing/20181108-00/?p=100165
* https://devblogs.microsoft.com/oldnewthing/20181109-00/?p=100175 */
#define UPB_STRINGIFY_INTERNAL(x) #x
#define UPB_STRINGIFY(x) UPB_STRINGIFY_INTERNAL(x)
#define UPB_CONCAT(a, b, c) a##b##c
@ -662,7 +652,7 @@ Error, UINTPTR_MAX is undefined
#define UPB_LINKARR_APPEND(name) \
__pragma(section(UPB_LINKARR_NAME(name, $j), read)) \
__declspec(allocate(UPB_LINKARR_NAME(name, $j)))
// clang-format off
// clang-format off
#define UPB_LINKARR_DECLARE(name, type) \
__pragma(message(UPB_LINKARR_NAME(name, $j))) \
__pragma(section(UPB_LINKARR_NAME(name, $a), read)) \
@ -673,13 +663,13 @@ Error, UINTPTR_MAX is undefined
type __stop_linkarr_##name; \
UPB_LINKARR_APPEND(name) \
__declspec(selectany) type UPB_linkarr_internal_empty_##name[1] = {0}
// clang-format on
// clang-format on
#define UPB_LINKARR_START(name) (&__start_linkarr_##name)
#define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name)
#else
// Linker arrays are not supported on this platform. Make macros no-ops.
// Linker arrays are not supported on this platform. Make macros no-ops.
#define UPB_LINKARR_APPEND(name)
#define UPB_LINKARR_DECLARE(name, type) \
UPB_STATIC_ASSERT(sizeof("__la_" #name) <= 17, \
@ -19654,5 +19644,3 @@ const char* UPB_PRIVATE(_upb_WireReader_SkipGroup)(
#undef _UPB_STRINGIFY
#undef _UPB_STRINGIFY2
#undef UPB_CONSTRUCTOR
#undef UPB_RETAIN
#undef UPB_HIDDEN

View file

@ -494,7 +494,7 @@ Error, UINTPTR_MAX is undefined
/* aarch64 supports big and little endian modes; fasttable performs multibyte
* tag loads assumes the tag of a varint is in the low bits. */
#if !defined(_WIN32) && (defined(__x86_64__) || defined(__AARCH64EL__)) && \
#if (defined(__x86_64__) || defined(__AARCH64EL__)) && \
UPB_HAS_ATTRIBUTE(preserve_none) && UPB_HAS_ATTRIBUTE(musttail)
#define UPB_FASTTABLE_SUPPORTED 1
#else
@ -513,11 +513,7 @@ Error, UINTPTR_MAX is undefined
* This is useful for releasing code that might be used on multiple platforms,
* for example the PHP or Ruby C extensions. */
#elif defined(UPB_TRY_ENABLE_FASTTABLE)
#if UPB_FASTTABLE_SUPPORTED
#define UPB_FASTTABLE 1
#else
#define UPB_FASTTABLE 0
#endif
#define UPB_FASTTABLE UPB_FASTTABLE_SUPPORTED
#else
#define UPB_FASTTABLE 0
#endif
@ -571,12 +567,6 @@ Error, UINTPTR_MAX is undefined
#define UPB_RETAIN
#endif
#if defined(__GNUC__) || defined(__clang__)
#define UPB_HIDDEN __attribute__((visibility("hidden")))
#else
#define UPB_HIDDEN
#endif
// Linker arrays combine elements from multiple translation units into a single
// array that can be iterated over at runtime.
//
@ -630,7 +620,7 @@ Error, UINTPTR_MAX is undefined
#elif defined(__MACH__)
/* As described in: https://stackoverflow.com/a/22366882 */
/* As described in: https://stackoverflow.com/a/22366882 */
#define UPB_LINKARR_APPEND(name) \
__attribute__(( \
section("__DATA,__la_" #name))) UPB_LINKARR_ATTR UPB_NO_SANITIZE_ADDRESS
@ -649,10 +639,10 @@ Error, UINTPTR_MAX is undefined
#elif defined(_MSC_VER)
/* See:
* https://devblogs.microsoft.com/oldnewthing/20181107-00/?p=100155
* https://devblogs.microsoft.com/oldnewthing/20181108-00/?p=100165
* https://devblogs.microsoft.com/oldnewthing/20181109-00/?p=100175 */
/* See:
* https://devblogs.microsoft.com/oldnewthing/20181107-00/?p=100155
* https://devblogs.microsoft.com/oldnewthing/20181108-00/?p=100165
* https://devblogs.microsoft.com/oldnewthing/20181109-00/?p=100175 */
#define UPB_STRINGIFY_INTERNAL(x) #x
#define UPB_STRINGIFY(x) UPB_STRINGIFY_INTERNAL(x)
#define UPB_CONCAT(a, b, c) a##b##c
@ -661,7 +651,7 @@ Error, UINTPTR_MAX is undefined
#define UPB_LINKARR_APPEND(name) \
__pragma(section(UPB_LINKARR_NAME(name, $j), read)) \
__declspec(allocate(UPB_LINKARR_NAME(name, $j)))
// clang-format off
// clang-format off
#define UPB_LINKARR_DECLARE(name, type) \
__pragma(message(UPB_LINKARR_NAME(name, $j))) \
__pragma(section(UPB_LINKARR_NAME(name, $a), read)) \
@ -672,13 +662,13 @@ Error, UINTPTR_MAX is undefined
type __stop_linkarr_##name; \
UPB_LINKARR_APPEND(name) \
__declspec(selectany) type UPB_linkarr_internal_empty_##name[1] = {0}
// clang-format on
// clang-format on
#define UPB_LINKARR_START(name) (&__start_linkarr_##name)
#define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name)
#else
// Linker arrays are not supported on this platform. Make macros no-ops.
// Linker arrays are not supported on this platform. Make macros no-ops.
#define UPB_LINKARR_APPEND(name)
#define UPB_LINKARR_DECLARE(name, type) \
UPB_STATIC_ASSERT(sizeof("__la_" #name) <= 17, \
@ -19734,5 +19724,3 @@ UPB_PRIVATE(upb_WireWriter_VarintUnusedSizeFromLeadingZeros64)(uint64_t clz) {
#undef _UPB_STRINGIFY
#undef _UPB_STRINGIFY2
#undef UPB_CONSTRUCTOR
#undef UPB_RETAIN
#undef UPB_HIDDEN

View file

@ -495,7 +495,7 @@ Error, UINTPTR_MAX is undefined
/* aarch64 supports big and little endian modes; fasttable performs multibyte
* tag loads assumes the tag of a varint is in the low bits. */
#if !defined(_WIN32) && (defined(__x86_64__) || defined(__AARCH64EL__)) && \
#if (defined(__x86_64__) || defined(__AARCH64EL__)) && \
UPB_HAS_ATTRIBUTE(preserve_none) && UPB_HAS_ATTRIBUTE(musttail)
#define UPB_FASTTABLE_SUPPORTED 1
#else
@ -514,11 +514,7 @@ Error, UINTPTR_MAX is undefined
* This is useful for releasing code that might be used on multiple platforms,
* for example the PHP or Ruby C extensions. */
#elif defined(UPB_TRY_ENABLE_FASTTABLE)
#if UPB_FASTTABLE_SUPPORTED
#define UPB_FASTTABLE 1
#else
#define UPB_FASTTABLE 0
#endif
#define UPB_FASTTABLE UPB_FASTTABLE_SUPPORTED
#else
#define UPB_FASTTABLE 0
#endif
@ -572,12 +568,6 @@ Error, UINTPTR_MAX is undefined
#define UPB_RETAIN
#endif
#if defined(__GNUC__) || defined(__clang__)
#define UPB_HIDDEN __attribute__((visibility("hidden")))
#else
#define UPB_HIDDEN
#endif
// Linker arrays combine elements from multiple translation units into a single
// array that can be iterated over at runtime.
//
@ -631,7 +621,7 @@ Error, UINTPTR_MAX is undefined
#elif defined(__MACH__)
/* As described in: https://stackoverflow.com/a/22366882 */
/* As described in: https://stackoverflow.com/a/22366882 */
#define UPB_LINKARR_APPEND(name) \
__attribute__(( \
section("__DATA,__la_" #name))) UPB_LINKARR_ATTR UPB_NO_SANITIZE_ADDRESS
@ -650,10 +640,10 @@ Error, UINTPTR_MAX is undefined
#elif defined(_MSC_VER)
/* See:
* https://devblogs.microsoft.com/oldnewthing/20181107-00/?p=100155
* https://devblogs.microsoft.com/oldnewthing/20181108-00/?p=100165
* https://devblogs.microsoft.com/oldnewthing/20181109-00/?p=100175 */
/* See:
* https://devblogs.microsoft.com/oldnewthing/20181107-00/?p=100155
* https://devblogs.microsoft.com/oldnewthing/20181108-00/?p=100165
* https://devblogs.microsoft.com/oldnewthing/20181109-00/?p=100175 */
#define UPB_STRINGIFY_INTERNAL(x) #x
#define UPB_STRINGIFY(x) UPB_STRINGIFY_INTERNAL(x)
#define UPB_CONCAT(a, b, c) a##b##c
@ -662,7 +652,7 @@ Error, UINTPTR_MAX is undefined
#define UPB_LINKARR_APPEND(name) \
__pragma(section(UPB_LINKARR_NAME(name, $j), read)) \
__declspec(allocate(UPB_LINKARR_NAME(name, $j)))
// clang-format off
// clang-format off
#define UPB_LINKARR_DECLARE(name, type) \
__pragma(message(UPB_LINKARR_NAME(name, $j))) \
__pragma(section(UPB_LINKARR_NAME(name, $a), read)) \
@ -673,13 +663,13 @@ Error, UINTPTR_MAX is undefined
type __stop_linkarr_##name; \
UPB_LINKARR_APPEND(name) \
__declspec(selectany) type UPB_linkarr_internal_empty_##name[1] = {0}
// clang-format on
// clang-format on
#define UPB_LINKARR_START(name) (&__start_linkarr_##name)
#define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name)
#else
// Linker arrays are not supported on this platform. Make macros no-ops.
// Linker arrays are not supported on this platform. Make macros no-ops.
#define UPB_LINKARR_APPEND(name)
#define UPB_LINKARR_DECLARE(name, type) \
UPB_STATIC_ASSERT(sizeof("__la_" #name) <= 17, \
@ -19117,5 +19107,3 @@ const char* UPB_PRIVATE(_upb_WireReader_SkipGroup)(
#undef _UPB_STRINGIFY
#undef _UPB_STRINGIFY2
#undef UPB_CONSTRUCTOR
#undef UPB_RETAIN
#undef UPB_HIDDEN

View file

@ -494,7 +494,7 @@ Error, UINTPTR_MAX is undefined
/* aarch64 supports big and little endian modes; fasttable performs multibyte
* tag loads assumes the tag of a varint is in the low bits. */
#if !defined(_WIN32) && (defined(__x86_64__) || defined(__AARCH64EL__)) && \
#if (defined(__x86_64__) || defined(__AARCH64EL__)) && \
UPB_HAS_ATTRIBUTE(preserve_none) && UPB_HAS_ATTRIBUTE(musttail)
#define UPB_FASTTABLE_SUPPORTED 1
#else
@ -513,11 +513,7 @@ Error, UINTPTR_MAX is undefined
* This is useful for releasing code that might be used on multiple platforms,
* for example the PHP or Ruby C extensions. */
#elif defined(UPB_TRY_ENABLE_FASTTABLE)
#if UPB_FASTTABLE_SUPPORTED
#define UPB_FASTTABLE 1
#else
#define UPB_FASTTABLE 0
#endif
#define UPB_FASTTABLE UPB_FASTTABLE_SUPPORTED
#else
#define UPB_FASTTABLE 0
#endif
@ -571,12 +567,6 @@ Error, UINTPTR_MAX is undefined
#define UPB_RETAIN
#endif
#if defined(__GNUC__) || defined(__clang__)
#define UPB_HIDDEN __attribute__((visibility("hidden")))
#else
#define UPB_HIDDEN
#endif
// Linker arrays combine elements from multiple translation units into a single
// array that can be iterated over at runtime.
//
@ -630,7 +620,7 @@ Error, UINTPTR_MAX is undefined
#elif defined(__MACH__)
/* As described in: https://stackoverflow.com/a/22366882 */
/* As described in: https://stackoverflow.com/a/22366882 */
#define UPB_LINKARR_APPEND(name) \
__attribute__(( \
section("__DATA,__la_" #name))) UPB_LINKARR_ATTR UPB_NO_SANITIZE_ADDRESS
@ -649,10 +639,10 @@ Error, UINTPTR_MAX is undefined
#elif defined(_MSC_VER)
/* See:
* https://devblogs.microsoft.com/oldnewthing/20181107-00/?p=100155
* https://devblogs.microsoft.com/oldnewthing/20181108-00/?p=100165
* https://devblogs.microsoft.com/oldnewthing/20181109-00/?p=100175 */
/* See:
* https://devblogs.microsoft.com/oldnewthing/20181107-00/?p=100155
* https://devblogs.microsoft.com/oldnewthing/20181108-00/?p=100165
* https://devblogs.microsoft.com/oldnewthing/20181109-00/?p=100175 */
#define UPB_STRINGIFY_INTERNAL(x) #x
#define UPB_STRINGIFY(x) UPB_STRINGIFY_INTERNAL(x)
#define UPB_CONCAT(a, b, c) a##b##c
@ -661,7 +651,7 @@ Error, UINTPTR_MAX is undefined
#define UPB_LINKARR_APPEND(name) \
__pragma(section(UPB_LINKARR_NAME(name, $j), read)) \
__declspec(allocate(UPB_LINKARR_NAME(name, $j)))
// clang-format off
// clang-format off
#define UPB_LINKARR_DECLARE(name, type) \
__pragma(message(UPB_LINKARR_NAME(name, $j))) \
__pragma(section(UPB_LINKARR_NAME(name, $a), read)) \
@ -672,13 +662,13 @@ Error, UINTPTR_MAX is undefined
type __stop_linkarr_##name; \
UPB_LINKARR_APPEND(name) \
__declspec(selectany) type UPB_linkarr_internal_empty_##name[1] = {0}
// clang-format on
// clang-format on
#define UPB_LINKARR_START(name) (&__start_linkarr_##name)
#define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name)
#else
// Linker arrays are not supported on this platform. Make macros no-ops.
// Linker arrays are not supported on this platform. Make macros no-ops.
#define UPB_LINKARR_APPEND(name)
#define UPB_LINKARR_DECLARE(name, type) \
UPB_STATIC_ASSERT(sizeof("__la_" #name) <= 17, \
@ -19558,5 +19548,3 @@ UPB_PRIVATE(upb_WireWriter_VarintUnusedSizeFromLeadingZeros64)(uint64_t clz) {
#undef _UPB_STRINGIFY
#undef _UPB_STRINGIFY2
#undef UPB_CONSTRUCTOR
#undef UPB_RETAIN
#undef UPB_HIDDEN

View file

@ -752,17 +752,6 @@ set(libupb_srcs
${protobuf_SOURCE_DIR}/upb/util/required_fields.c
${protobuf_SOURCE_DIR}/upb/wire/byte_size.c
${protobuf_SOURCE_DIR}/upb/wire/decode.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/cardinality.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/dispatch.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/field_extension.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/field_fixed.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/field_generic.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/field_message.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/field_mismatch.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/field_string.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/field_unknown.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/field_varint.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/function_array.c
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/select.c
${protobuf_SOURCE_DIR}/upb/wire/encode.c
${protobuf_SOURCE_DIR}/upb/wire/encode_extension.c
@ -895,9 +884,6 @@ set(libupb_hdrs
${protobuf_SOURCE_DIR}/upb/wire/decode.h
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/combinations.h
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/data.h
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/dispatch.h
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/field_parsers.h
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/function_array.h
${protobuf_SOURCE_DIR}/upb/wire/decode_fast/select.h
${protobuf_SOURCE_DIR}/upb/wire/encode.h
${protobuf_SOURCE_DIR}/upb/wire/encode_extension.h