On Fri, 4 Aug 2023 at 21:52, Jeff Law <jeffreya...@gmail.com> wrote: > > diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc > > index b4884a30872..e61110fa3ad 100644 > > --- a/gcc/config/riscv/riscv-v.cc > > +++ b/gcc/config/riscv/riscv-v.cc > > @@ -49,6 +49,7 @@ > > #include "tm-constrs.h" > > #include "rtx-vector-builder.h" > > #include "targhooks.h" > > +#include "predict.h" > Not sure this is needed, but I didn't scan for it explicitly. If it's > not needed, then remove it.
It is needed to declare optimize_function_for_size_p .