Landing: eaebd987e549
Project / Subsystem
gcc / testsuite
Date
2026-06-05
Author
Jakub Jelinek
Commit
eaebd987e5492b23419b5c52482038a94066c640
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- testsuite
- patch_id
- —
- commit_hash
- eaebd987e5492b23419b5c52482038a94066c640
- source_type
- github
- headline
- Testsuite: Improve enum argument testing of built-in functions
- tldr
- The GCC testsuite now performs more thorough testing of built-in functions' handling of enumerated type arguments, including those with fixed underlying types,…
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • testsuite
- • builtins
- • enums
- • c
- • c++
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-05T00:00:00.000Z
The GCC testsuite now includes expanded tests for how built-in functions such as __builtin_clz, __builtin_ctz, and __builtin_bswapg handle enumerated type arguments. This enhancement specifically addresses cases involving enumerations with fixed underlying types, which were previously only partially covered in C++. The improved coverage ensures the compiler’s robustness when these built-ins process enum values in both C and C++ code, preventing potential silent miscompilations.