Skip to content

Commit

Permalink
* config-ml.in (sparc*-*-*): Disable sparcv9 support if the
Browse files Browse the repository at this point in the history
        necessary libraries are missing.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30632 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
law committed Nov 23, 1999
1 parent 8f8d6e8 commit 5514758
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Tue Nov 23 00:57:41 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>

* config-ml.in (sparc*-*-*): Disable sparcv9 support if the
necessary libraries are missing.

Fri Nov 19 11:22:31 MST 1999 Diego Novillo <dnovillo@cygnus.com>

* MAINTAINERS: Add new 'write after approval' maintainer.
Expand Down
24 changes: 24 additions & 0 deletions config-ml.in
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,30 @@ powerpc*-*-* | rs6000*-*-*)
done
fi
;;
sparc*-*-*)
case " $multidirs " in
*" m64 "*)
# We will not be able to create libraries with -m64 if
# we cannot even link a trivial program. It usually
# indicates the 64bit libraries are missing.
if echo 'main() {}' > conftest.c &&
${CC-gcc} -m64 conftest.c -o conftest; then
:
else
echo Could not link program with -m64, disabling it.
old_multidirs="${multidirs}"
multidirs=""
for x in ${old_multidirs}; do
case "$x" in
*m64* ) : ;;
*) multidirs="${multidirs} ${x}" ;;
esac
done
fi
rm -f conftest.c conftest
;;
esac
;;
esac

# Remove extraneous blanks from multidirs.
Expand Down

0 comments on commit 5514758

Please sign in to comment.