https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120201
--- Comment #27 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:1339a4b6e8b6911003b71430986e0a3be7841e91 commit r15-11378-g1339a4b6e8b6911003b71430986e0a3be7841e91 Author: Jakub Jelinek <[email protected]> Date: Tue Jul 14 10:37:03 2026 +0200 cfgexpand: Align the whole asan var block to crtl->stack_alignment_needed [PR120201] If crtl->stack_alignment_needed / BITS_PER_UNIT is larger than data.asan_alignb, we can end up with misaligned stack for further allocations (e.g. to spill SSA_NAMEs with vector modes and large alignment). This patch increments data.asan_alignb in that case. 2026-07-14 Jakub Jelinek <[email protected]> H.J. Lu <[email protected]> PR tree-optimization/120201 * cfgexpand.cc (expand_used_vars): Set data.asan_alignb to maximum of itself and crtl->stack_alignment_needed / BITS_PER_UNIT. * g++.dg/asan/pr120201-1.C: New test. Signed-off-by: H.J. Lu <[email protected]> (cherry picked from commit 0f485cf70171a41ea39deec0a8b65aad0b9d2a9b)
