https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201
--- Comment #5 from Raphael C <drraph at gmail dot com> --- I can confirm you now get f: mov eax, 1 ret with gcc 8 onwards.
drraph at gmail dot com via Gcc-bugs Fri, 11 Jun 2021 03:12:14 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201
--- Comment #5 from Raphael C <drraph at gmail dot com> --- I can confirm you now get f: mov eax, 1 ret with gcc 8 onwards.