https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629
--- Comment #22 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Stubbs <a...@gcc.gnu.org>: https://gcc.gnu.org/g:966de09be91c639d66d252c9ae6ab8da5ebfca18 commit r10-7912-g966de09be91c639d66d252c9ae6ab8da5ebfca18 Author: Andrew Stubbs <a...@codesourcery.com> Date: Mon Apr 20 15:25:31 2020 +0100 amdgcn: Check HSA return codes [PR94629] Ensure that the returned status values are not ignored. The old code was not broken, but this is both safer and satisfies static analysis. 2020-04-23 Andrew Stubbs <a...@codesourcery.com> PR other/94629 libgomp/ * plugin/plugin-gcn.c (init_hsa_context): Check return value from hsa_iterate_agents. (GOMP_OFFLOAD_init_device): Check return values from both calls to hsa_agent_iterate_regions.