https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115014
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2024-05-09 Severity|normal |enhancement Status|UNCONFIRMED |WAITING --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am not so sure this is wanted. GCC assumes a flat memory system for stack and normal memory accesses . >1) If the address in EBP was calculated from stack pointer value, generate >unprefixed instructions. This fix is not simple really because addresses don't need to be just in EBP really and even can be stored off into stack memory and then loaded back. It seems like there must be a better way of implementing this inside your kernel as a flat memory system between stack and data segments is not going to change because it would add a very complex tracking.