https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83220
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ra, wrong-code Target| |x86_64-*-* i?86-*-* Component|c |target Version|unknown |8.0 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Try -ffixed-rbp, not sure if your expectations are valid. It might have to do with a regstack thing given you use x87 math. Confirmed on trunk with -O2, -ffixed-rbp seems to work.