https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105413
--- Comment #3 from Witold Baryluk <witold.baryluk+gcc at gmail dot com> --- It works. Thank you. Any chance this will be in gcc 12.x? I work a lot on Debian Linux, and I doubt I will have gcc trunk or gcc 13 available any time soon. Also weirdly gcc does not inline this function, unless I add @attribute("always_inline") on syscall, or @attribute("flatten") on openatdummy.