https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107088
--- Comment #9 from Andrew Stubbs <ams at gcc dot gnu.org> --- I can confirm that the patch fixes the amdgcn build.
ams at gcc dot gnu.org via Gcc-bugs Fri, 30 Sep 2022 04:56:25 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107088
--- Comment #9 from Andrew Stubbs <ams at gcc dot gnu.org> --- I can confirm that the patch fixes the amdgcn build.