]> gcc.gnu.org Git - gcc.git/blobdiff - config-ml.in
* rs6000.md (find_addr_reg): Handle LO_SUM addresses.
[gcc.git] / config-ml.in
index 3a159cf31d4d42e9639f9c66d6684ef801fdbd65..ed8b1edfaf4e62fc757591a4d3b2937aae699337 100644 (file)
@@ -299,6 +299,28 @@ mips*-*-*)
            esac
          done
        fi
+       case " $multidirs " in
+       *" mabi=64 "*)
+         # We will not be able to create libraries with -mabi=64 if
+         # we cannot even link a trivial program.  It usually
+         # indicates the 64bit libraries are missing.
+         if echo 'main() {}' > conftest.c &&
+            ${CC-gcc} -mabi=64 conftest.c -o conftest; then
+           :
+         else
+           echo Could not link program with -mabi=64, disabling it.
+           old_multidirs="${multidirs}"
+           multidirs=""
+           for x in ${old_multidirs}; do
+             case "$x" in
+             *mabi=64* ) : ;;
+             *) multidirs="${multidirs} ${x}" ;;
+             esac
+           done
+         fi
+         rm -f conftest.c conftest
+         ;;
+       esac
        ;;
 powerpc*-*-* | rs6000*-*-*)
        if [ x$enable_softfloat = xno ]
This page took 0.023014 seconds and 5 git commands to generate.