This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] configure patch for mips explicit relocs
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 09 Jun 2003 08:31:53 +0100
- Subject: [committed] configure patch for mips explicit relocs
This patch just adds a gas version check to configure.in.
Approved by Eric & applied.
Richard
* configure.in: Assume gas 2.14 and above can handle MIPS relocation
operators.
* configure: Regenerated.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.680
diff -c -d -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.680 configure.in
*** configure.in 8 Jun 2003 06:41:23 -0000 1.680
--- configure.in 9 Jun 2003 07:25:20 -0000
*************** case "$target" in
*** 2689,2695 ****
AC_MSG_CHECKING(whether the assembler has explicit relocation support)
if test x$gcc_cv_mips_explicit_relocs = x; then
gcc_cv_mips_explicit_relocs=no
! if test x$gcc_cv_as != x; then
echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
if $gcc_cv_as conftest.s -o conftest.o > /dev/null 2>&1; then
gcc_cv_mips_explicit_relocs=yes
--- 2689,2699 ----
AC_MSG_CHECKING(whether the assembler has explicit relocation support)
if test x$gcc_cv_mips_explicit_relocs = x; then
gcc_cv_mips_explicit_relocs=no
! if test $in_tree_gas = yes; then
! gcc_GAS_VERSION_GTE_IFELSE(2,14,0,[
! gcc_cv_mips_explicit_relocs=yes
! ])
! elif test x$gcc_cv_as != x; then
echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
if $gcc_cv_as conftest.s -o conftest.o > /dev/null 2>&1; then
gcc_cv_mips_explicit_relocs=yes