Landing: 62769289be76
Project / Subsystem
gcc / ada
Date
2026-09-29
Author
Eric Botcazou
Commit
62769289be76f5a413f24f8a0a0a08017d1efc63
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 62769289be76f5a413f24f8a0a0a08017d1efc63
- source_type
- github
- headline
- Ada: Get rid of temporary in assignment of others-equivalent array aggregate
- tldr
- Optimizes Ada array aggregate assignments by avoiding unnecessary temporaries.
- author
- Eric Botcazou
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-29T00:00:00.000Z
This commit simplifies the expansion of Ada array aggregates used in assignments. It removes an unnecessary temporary variable that was introduced to handle potential sliding operations, which are not applicable to ‘others’ aggregates. By directly expanding these aggregates, the compiler generates more efficient code.