Re: GCC 15 -fzero-init-padding-bits= option and redzone clobber
Linus Torvalds <[email protected]>
| Newsgroups | org.kernel.vger.linux-toolchains |
|---|---|
| Message-ID | <CAHk-=wj=s8rPKi+ju+eadh0rVU76oZ1XwE3xUjwj9osM8Cea3A@mail.gmail.com> |
On Fri, 29 Nov 2024 at 09:55, Linus Torvalds <[email protected]> wrote: > > This has happened with both gcc and clang, and telling the compiler > that we need the stack pointer fixes it. I don't actually remember who > told us to do that, but I think it was a gcc person. > > In fact, if I were a betting man, I would have thought it was you ;) Ahh, found it. Not you. Segher. Doing some archeology finds this: https://gcc.gnu.org/legacy-ml/gcc/2015-07/msg00080.html and even at the time, Segher suggested maybe having a separate "stack" clobber. But obviously that wasn't available at the time, and afaik has never happened. So we used that gcc suggestion, and it has worked fine for most of a decade by now. Linus