My port needs the below patch. I think this was reduced by someone on a port that didn’t use some features (TARGET_SHORT_BRANCH_CHEAPER) of tm.h.
So, the question is, is this the preferred way to do this? I don’t want to hookize TARGET_SHORT_BRANCH_CHEAPER, which is the other fix. If yes, Ok? diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 3dcb82a..7a2b351 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -114,6 +114,7 @@ #include "bb-reorder.h" #include "except.h" #include "fibonacci_heap.h" +#include "tm_p.h" /* The number of rounds. In most cases there will only be 4 rounds, but when partitioning hot and cold basic blocks into separate sections of