summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-11 23:00:24 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-11 23:00:24 +0000
commita48ef8ee5c527137faa2aec5b9101ad63d41fbd6 (patch)
treec6ae4ff25e9c075ec9f7ce01bb43bb9632d68935
parentb554ce2f9489d77acb0aa2f299d7088556348f72 (diff)
downloadgcc-a48ef8ee5c527137faa2aec5b9101ad63d41fbd6.tar.gz
* config-ml.in: On mips*-*-*, if multidirs contains mabi=64, try to
link a trivial program with -mabi=64. If it fails, remove mabi=64 from multidirs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26355 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--ChangeLog6
-rw-r--r--config-ml.in22
2 files changed, 28 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 14493f07fa8..a269c2aa3b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Apr 11 23:55:34 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * config-ml.in: On mips*-*-*, if multidirs contains mabi=64, try to
+ link a trivial program with -mabi=64. If it fails, remove mabi=64
+ from multidirs.
+
Sat Apr 10 21:50:01 1999 Philipp Thomas (kthomas@gwdg.de)
* config.sub: Set basic_machine to i586 when target_alias = k6-*.
diff --git a/config-ml.in b/config-ml.in
index 3a159cf31d4..ed8b1edfaf4 100644
--- a/config-ml.in
+++ b/config-ml.in
@@ -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 ]