Landing: a462ae8896ca

Project / Subsystem

gcc / gcc/ada

Date

2026-05-07

Author

Eric Botcazou

Commit

a462ae8896caa378eb23ef67e7b6b87ed6c1bae1

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc/ada
patch_id
commit_hash
a462ae8896caa378eb23ef67e7b6b87ed6c1bae1
source_type
github
headline
Optimizes memory layout for Ada tagged type data
tldr
This commit improves the memory layout of type-specific data records for Ada tagged types, reducing memory consumption on 64-bit targets.
author
Eric Botcazou
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • memory
  • ada
discussion_id_link
bugzilla_pr
date
2026-05-07T00:00:00.000Z

The compiler now optimizes the layout of Type_Specific_Data records used with Ada tagged types. By reordering boolean components to immediately follow natural components, the compiler saves one 64-bit word for each record on 64-bit architectures. This change directly translates to reduced memory usage for applications heavily utilizing tagged types, improving overall footprint efficiency.