On Sun, Aug 13, 2023 at 12:20 PM Eddy Young <jeyo...@priscimon.com> wrote: > > This patch changes the type of `x_spill_indirect_levels` member of > `struct target reload` from `bool` to `unsigned char`. > > Without this change, the build of esp-open-sdk fails with GCC 11 and > above.
This was done back in d57c99458933 for GCC 6. https://gcc.gnu.org/r6-535-gd57c99458933a2 . Why are you posting a patch against a branch which has not been supported for years now? Thanks, Andrew Pinski > > (Please bear with me, this is my first patch submission.) > > Cheers, > Eddy > > --- > ChangeLog | 5 +++++ > gcc/reload.h | 2 +- > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/ChangeLog b/ChangeLog > index 3dd1ce544af..442aa9192a9 100644 > --- a/ChangeLog > +++ b/ChangeLog > @@ -1,3 +1,8 @@ > +2015-08-13 Eddy Young <jeyo...@priscimon.com> > + > + * gcc/reload.h: Change type of x_spill_indirect_levels of struct > + target_reload to support C++17 build. > + > 2015-06-23 Release Manager > > * GCC 4.8.5 released. > diff --git a/gcc/reload.h b/gcc/reload.h > index 7a13ad30e82..1e94d8ea93b 100644 > --- a/gcc/reload.h > +++ b/gcc/reload.h > @@ -166,7 +166,7 @@ struct target_reload { > value indicates the level of indirect addressing supported, e.g., two > means that (MEM (MEM (REG n))) is also valid if (REG n) does not get > a hard register. */ > - bool x_spill_indirect_levels; > + unsigned char x_spill_indirect_levels; > > /* True if caller-save has been reinitialized. */ > bool x_caller_save_initialized_p; > -- > 2.39.2 >