From 66d20d881647e7dd177355a851d7839394ab8341 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Fri, 16 Sep 2022 20:56:39 -0700 Subject: [PATCH] xtensa: gcc: enable section anchors support gcc/ * config/xtensa/xtensa.cc (TARGET_MAX_ANCHOR_OFFSET): New definition. --- gcc/config/xtensa/xtensa.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index e5abd356a745..828c7642b7cb 100644 --- a/gcc/config/xtensa/xtensa.cc +++ b/gcc/config/xtensa/xtensa.cc @@ -366,6 +366,9 @@ static rtx xtensa_delegitimize_address (rtx); #undef TARGET_ASM_OUTPUT_MI_THUNK #define TARGET_ASM_OUTPUT_MI_THUNK xtensa_output_mi_thunk +#undef TARGET_MAX_ANCHOR_OFFSET +#define TARGET_MAX_ANCHOR_OFFSET 1020 + struct gcc_target targetm = TARGET_INITIALIZER; -- 2.43.5