[PATCH] powerpc/64s: Disable stack variable initialisation for prom_init

Linus Torvalds torvalds at linux-foundation.org
Tue Jul 19 04:34:50 AEST 2022


On Mon, Jul 18, 2022 at 6:44 AM Michael Ellerman <mpe at ellerman.id.au> wrote:
>
> With GCC 12, allmodconfig enables CONFIG_INIT_STACK_ALL_PATTERN, which
> causes the compiler to emit memset calls to initialise on-stack
> variables with a pattern.

Ahh, and that explains why "volatile" made no difference. That did
seem very odd.

Thanks for figuring it out,

                   Linus


More information about the Linuxppc-dev mailing list