在 2022/8/23 下午10:51, Xi Ruoyao 写道:
diff --git a/gcc/config/loongarch/loongarch-protos.h 
b/gcc/config/loongarch/loongarch-protos.h
index cadaad7519c..4e925aa3876 100644
--- a/gcc/config/loongarch/loongarch-protos.h
+++ b/gcc/config/loongarch/loongarch-protos.h
@@ -30,6 +30,12 @@ along with GCC; see the file COPYING3.  If not see
     SYMBOL_PCREL
         The symbol's value will be loaded directly from data section.
+ SYMBOL_PCREL32
+   SYMBOL_PCREL64
+       Like SYMBOL_PCREL, but the PC-relative offset of the symbol is
+       assumed to be in the ± 2GiB or ± 8 EiB range, instead of the
+       code model specification.
+
     SYMBOL_TLS
         A thread-local symbol.

I don't think it's necessary to add SYMBOL_PCREL32, SYMBOL_PCREL can represent relative pc operation in normal mode.

Reply via email to