https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99652
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-03-18 Status|RESOLVED |NEW Resolution|INVALID |--- Ever confirmed|0 |1 --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Andrew Pinski from comment #1) > I don't see why this is a bug. GCC decides the return register early on and > that is a good thing. On arm64, I got [hjl@gnu-cfl-2 gcc]$ cat /tmp/x.c inline double foo (void) { return 1.0; } [hjl@gnu-cfl-2 gcc]$ ./xgcc -B./ -mgeneral-regs-only /tmp/x.c -S [hjl@gnu-cfl-2 gcc]$