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)
This commit is contained in:
YunQiang Su 2024-06-20 10:37:39 +08:00
parent 272e8c90af
commit a16f47f5f3
2 changed files with 4 additions and 0 deletions

2
gcc/configure vendored
View file

@ -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 \

View file

@ -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 \