]> git.ipfire.org Git - thirdparty/gcc.git/commit
amdgcn: Fix register size bug
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 17 Mar 2023 11:04:12 +0000 (11:04 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Thu, 23 Mar 2023 11:00:54 +0000 (11:00 +0000)
commit3b97715af0e848ef8703ac04665bde562b2ac159
tree84c028c9f97b7caa87781b54eb2021ba6be108bc
parentdb80ccd34365c14e529111c94b93d3fb201b6eef
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/config/gcn/gcn.cc