[COMMITTED] xtensa: gcc: enable section anchors support

Message ID 20220922105533.1837026-1-jcmvbkbc@gmail.com
State New, archived
Headers
Series [COMMITTED] xtensa: gcc: enable section anchors support |

Commit Message

Max Filippov Sept. 22, 2022, 10:55 a.m. UTC
  gcc/
	* config/xtensa/xtensa.cc (TARGET_MAX_ANCHOR_OFFSET): New
	definition.
---
 gcc/config/xtensa/xtensa.cc | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

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;