Re: [PATCH] gcc-plugins: Fix build for upcoming GCC release

From: Kees Cook
Date: Fri Jan 13 2023 - 18:18:47 EST


On Fri, Jan 13, 2023 at 09:30:33AM -0800, Palmer Dabbelt wrote:
> From: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
>
> The upcoming GCC release has refactored the gimple plugin interface a
> bit and unless gimple-iterator.h is included before gimple-fold.h I end
> up with a bunch of missing declarations when building the stack
> protector plugin.
>
> Link: https://inbox.sourceware.org/gcc-patches/CAFiYyc2q%2Bc-0uZb-zAskmR_U%2BM%2BxQfp-W00ZbLErfjx=j5qHGg@xxxxxxxxxxxxxx/
> Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>

Eek, actually, I've unapplied this. It breaks on GCC 12.

--
Kees Cook