[Bug inline-asm/93021] SP Clobber change prevents compilation of some bootloaders and operating systems

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 19 21:02:00 GMT 2019


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.


More information about the Gcc-bugs mailing list