https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108715
--- Comment #7 from Daniel Zaoui <daniel at eyoman dot com> --- With the -fno-builtin option, the assembly is correct and the program behaves as expected.
daniel at eyoman dot com via Gcc-bugs Wed, 08 Feb 2023 02:38:05 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108715
--- Comment #7 from Daniel Zaoui <daniel at eyoman dot com> --- With the -fno-builtin option, the assembly is correct and the program behaves as expected.