diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2003-06-09 07:27:06 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2003-06-09 07:27:06 +0000 |
commit | 4dd03b276c94a3e3faec9abbb2763baf9cb67a80 (patch) | |
tree | cf8161ce0ac5e74e2be670d665c4f631447e033f /gcc | |
parent | f833ffd42150a2e69fb37a5b7f9c8216d2613ff8 (diff) | |
download | gcc-4dd03b276c94a3e3faec9abbb2763baf9cb67a80.zip gcc-4dd03b276c94a3e3faec9abbb2763baf9cb67a80.tar.gz gcc-4dd03b276c94a3e3faec9abbb2763baf9cb67a80.tar.bz2 |
configure.in: Assume gas 2.14 and above can handle MIPS relocation operators.
* configure.in: Assume gas 2.14 and above can handle MIPS relocation
operators.
* configure: Regenerated.
From-SVN: r67657
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rwxr-xr-x | gcc/configure | 17 | ||||
-rw-r--r-- | gcc/configure.in | 6 |
3 files changed, 25 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2122232..029d66d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,10 @@ 2003-06-09 Richard Sandiford <rsandifo@redhat.com> + + * configure.in: Assume gas 2.14 and above can handle MIPS relocation + operators. + * configure: Regenerated. + +2003-06-09 Richard Sandiford <rsandifo@redhat.com> Alexandre Oliva <aoliva@redhat.com> * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro. diff --git a/gcc/configure b/gcc/configure index 597fd80..24cb623 100755 --- a/gcc/configure +++ b/gcc/configure @@ -2425,7 +2425,7 @@ fi # Find some useful tools -for ac_prog in mawk gawk nawk awk +for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -8562,7 +8562,18 @@ EOF echo "configure:8563: checking whether the assembler has explicit relocation support" >&5 if test x$gcc_cv_mips_explicit_relocs = x; then gcc_cv_mips_explicit_relocs=no - if test x$gcc_cv_as != x; then + if test $in_tree_gas = yes ; then + if test $gcc_cv_gas_major_version -eq 2 \ +&& test $gcc_cv_gas_minor_version -ge 14 \ +|| test $gcc_cv_gas_major_version -gt 2 ; then + + + gcc_cv_mips_explicit_relocs=yes + + +fi + + 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 @@ -8754,7 +8765,7 @@ fi echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:8758: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo "configure:8769: checking whether to enable maintainer-specific portions of Makefiles" >&5 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" diff --git a/gcc/configure.in b/gcc/configure.in index d7e08b9..e36ad2b 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -2689,7 +2689,11 @@ case "$target" in 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 + 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 |