Landing: ed1d15e94f5c
Project / Subsystem
gcc / gcc/c
Date
2026-06-28
Author
Martin Uecker
Commit
ed1d15e94f5ce28a9fdba6e3b255efef420c93f0
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/c
- patch_id
- —
- commit_hash
- ed1d15e94f5ce28a9fdba6e3b255efef420c93f0
- source_type
- github
- headline
- GCC: Standardize flexible array member detection and usage
- tldr
- Moves and renames flexible array member detection helper function for consistency.
- author
- Martin Uecker
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c
- • type system
- • refactor
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-28T00:00:00.000Z
This commit consolidates GCC’s C frontend logic for detecting flexible array members. It renames an existing helper function to flexible_array_member_type_p and moves it to tree.cc for broader use. The change also updates several internal functions to use this new helper, replacing direct checks and improving code maintainability. Additionally, it removes a misleading warning related to zero-sized arrays in digest_init.