[Bug target/124098] [16 Regression] ICE: in ix86_finalize_stack_frame_flags, at config/i386/i386.cc:8829 with -O2 -march=graniterapids-d since r16-194
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 18 05:15:08 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124098
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:b54533a28632482e91d7dfbbc47c75fb6d5e78bb
commit r16-7563-gb54533a28632482e91d7dfbbc47c75fb6d5e78bb
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Feb 17 09:51:58 2026 +0800
x86: Update stack alignment only if stack is used
The same hard register may be used for both stack and non-stack accesses.
Update ix86_find_max_used_stack_alignment to adjust stack alignment only
when a hard register used for a stack access is defined in a basic block
that dominates the block where it is used.
gcc/
PR target/124098
* config/i386/i386.cc (ix86_access_stack_p): New.
(ix86_find_max_used_stack_alignment): Update stack alignment only
if stack is used.
gcc/testsuite/
PR target/124098
* gcc.target/i386/pr124098.c: New test.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
More information about the Gcc-bugs
mailing list