]> git.ipfire.org Git - people/ms/gcc.git/commit
amdgcn: Fix register size bug devel/omp/gcc-12
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 17 Mar 2023 11:04:12 +0000 (11:04 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Fri, 17 Mar 2023 13:03:03 +0000 (13:03 +0000)
commit9d0ea7a55ac815c59dd3b004008aa2195c541d12
treef007e69a4839c261de4644e794c3fd0c61917d8c
parent833d374cd75810b8831f84c00c60c23d9e77788f
amdgcn: Fix register size bug

Fix an issue in which "vectors" of duplicate entries placed in scalar
registers caused the following 63 registers to be marked live, for the
purpose of prologue generation, which resulted in stack corruption.

gcc/ChangeLog:

* config/gcn/gcn.cc (gcn_class_max_nregs): Handle vectors in SGPRs.
(move_callee_saved_registers): Detect the bug condition early.
gcc/ChangeLog.omp
gcc/config/gcn/gcn.cc