]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Build: Set gcc_cv_as_mips_explicit_relocs if gcc_cv_as_mips_explicit_relocs_pcrel
authorYunQiang Su <syq@gcc.gnu.org>
Thu, 20 Jun 2024 02:37:39 +0000 (10:37 +0800)
committerYunQiang Su <syq@gcc.gnu.org>
Fri, 21 Jun 2024 02:54:05 +0000 (10:54 +0800)
We check gcc_cv_as_mips_explicit_relocs if gcc_cv_as_mips_explicit_relocs_pcrel
only, while gcc_cv_as_mips_explicit_relocs is used by later code.

Maybe, it is time for use to set gcc_cv_as_mips_explicit_relocs always now,
as it has been in Binutils for more than 20 years.

gcc
* configure.ac: Set gcc_cv_as_mips_explicit_relocs if
gcc_cv_as_mips_explicit_relocs_pcrel.
* configure: Regenerate.

gcc/configure
gcc/configure.ac

index 9dc0b65dfaacece70c3e89b1aebbf2adcf93bc35..ad998105da3c5de585790cbc53d89a5a86ddecce 100755 (executable)
@@ -30278,6 +30278,8 @@ $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_BASE" >>confdefs.h
 
 fi
 
+    else
+      gcc_cv_as_mips_explicit_relocs=yes
     fi
 
     if test x$gcc_cv_as_mips_explicit_relocs = xno; then \
index b2243e9954aac383224183f533c4bd716f596ff5..c51d3ca5f1bd514daf519c5c02682ffc052b1f7a 100644 (file)
@@ -5255,6 +5255,8 @@ LCF0:
 [      lw $4,%gp_rel(foo)($4)],,
       [AC_DEFINE(MIPS_EXPLICIT_RELOCS, MIPS_EXPLICIT_RELOCS_BASE,
                 [Define if assembler supports %reloc.])])
+    else
+      gcc_cv_as_mips_explicit_relocs=yes
     fi
 
     if test x$gcc_cv_as_mips_explicit_relocs = xno; then \