https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314
--- Comment #11 from Sam James <sjames at gcc dot gnu.org> --- Or, to put it another way: you're familiar with the code enough to share those comments about whether something is pure and so on, so it should be doable for you to then replace the function names with some stub and a prototype which does the same thing. I would perhaps work on removing "__force_inline" use first (just manually inline the callers if it's needed) and then "genericise", like inlined IsPlayerHandleValid just becomes some loop and a return.