https://gcc.gnu.org/g:a16f47f5f34d08b13ee58ea362027c6a479eb82f
commit r14-10336-ga16f47f5f34d08b13ee58ea362027c6a479eb82f Author: YunQiang Su <s...@gcc.gnu.org> Date: Thu Jun 20 10:37:39 2024 +0800 Build: Set gcc_cv_as_mips_explicit_relocs if gcc_cv_as_mips_explicit_relocs_pcrel 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. gcc * configure.ac: Set gcc_cv_as_mips_explicit_relocs if gcc_cv_as_mips_explicit_relocs_pcrel. * configure: Regenerate. (cherry picked from commit 573f11ec34eeb6a6c3bd3d7619738f927236727b) Diff: --- gcc/configure | 2 ++ gcc/configure.ac | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gcc/configure b/gcc/configure index 23da7d55d62..abc8bfdc244 100755 --- a/gcc/configure +++ b/gcc/configure @@ -30489,6 +30489,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 \ diff --git a/gcc/configure.ac b/gcc/configure.ac index d7cf0b92cd8..1d2cefa3f6a 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -5304,6 +5304,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 \