Landing: d38b7b34f4dc

Project / Subsystem

gcc / cfgexpand

Date

2026-08-26

Author

Oleg Tolmatcev

Commit

d38b7b34f4dc69f896e1fbd984b859365f3dd282

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cfgexpand
patch_id
—
commit_hash
d38b7b34f4dc69f896e1fbd984b859365f3dd282
source_type
github
headline
Cfgexpand: Consistently align stack variables.
tldr
Ensures consistent stack alignment calculation for local variables to fix alignment assertion failures.
author
Oleg Tolmatcev
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • stack
  • • alignment
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-08-26T00:00:00.000Z

This fix in the cfgexpand pass ensures that stack-allocated local variables are consistently aligned. Previously, defer_stack_allocation and expand_one_stack_var_1 used different methods to calculate alignment, causing variables deemed small enough by one function to trigger a large-alignment assertion in the other. The change standardizes alignment computation using align_local_variable.