https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93021
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >This change causes GCC to fail when compiling boot loaders that set the SP >before passing control to applications. Shouldn't that function be written in pure assembly code? In fact changing the SP behind GCC back can cause other issues, especially when compiled at -O0.