Landing: baab3a11e1bc

Project / Subsystem

gcc / gcc/c

Date

2026-06-28

Author

Martin Uecker

Commit

baab3a11e1bcb5df1f71313fb06f392e7ce0e80d

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/c
patch_id
commit_hash
baab3a11e1bcb5df1f71313fb06f392e7ce0e80d
source_type
github
headline
GCC: Harmonize handling of zero-size arrays and flexible array members
tldr
Standardizes internal functions for zero-size arrays and flexible array members.
author
Martin Uecker
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c
  • type system
discussion_id_link
bugzilla_pr
date
2026-06-28T00:00:00.000Z

This commit refactors GCC’s C frontend to use common internal functions for creating and detecting zero-size arrays and flexible array members. It introduces a new helper function zero_length_array_type_p and modifies existing ones to consistently handle these types. The change aims to improve code clarity and prepare for future updates that may further unify the representation of these array types.