Landing: 6341d34747a6
Project / Subsystem
gcc / c++
Date
2026-10-03
Author
Jakub Jelinek
Commit
6341d34747a6ac554e70ec1e0e39f1bece3506d3
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- 6341d34747a6ac554e70ec1e0e39f1bece3506d3
- source_type
- github
- headline
- Fix mangling for __builtin_bswapg and __builtin_bitreverseg calls.
- tldr
- Corrects the mangling of calls to `__builtin_bswapg` and `__builtin_bitreverseg` which previously caused ICEs.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • compiler
- • bugfix
- • mangling
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-10-03T00:00:00.000Z
This commit fixes an Internal Compiler Error (ICE) during name mangling for calls to __builtin_bswapg and __builtin_bitreverseg. These built-in functions, which have return types dependent on their argument types, were treated as internal function calls (IFN_BSWAP, IFN_BITREVERSE). The compiler previously crashed when trying to mangle these calls. The fix ensures they are mangled similarly to type-generic built-ins with fixed return types, resolving the ICE.