@@ -3488,12 +3488,27 @@ case "$target" in
gcc_GAS_CHECK_FEATURE([-mabi option],
gcc_cv_as_aarch64_mabi,,
[-mabi=lp64], [.text],,,)
- if test $gcc_cv_as_aarch64_mabi = yes ; then
+ if test x$gcc_cv_as_aarch64_mabi = xyes ; then
AC_DEFINE(HAVE_AS_MABI_OPTION, 1,
[Define if your assembler supports the -mabi option.])
- fi
- if test x$gcc_cv_as_aarch64_mabi = xno && test x$with_abi = xilp32;
then
- AC_MSG_ERROR([Assembler doesnot support -mabi=ilp32. Upgrade the
Assembler.])
+ else
+ if test x$with_abi = xilp32; then
+ AC_MSG_ERROR([Assembler does not support -mabi=ilp32. Upgrade the
Assembler.])
+ fi
+ if test x"$with_multilib_list" = xdefault; then
+ TM_MULTILIB_CONFIG=lp64
+ else
+ aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
+ for aarch64_multilib in ${aarch64_multilibs}; do
+ case ${aarch64_multilib} in
+ ilp32 )
+ AC_MSG_ERROR([Assembler does not support -mabi=ilp32. Upgrade the
Assembler.])
+ ;;
+ *)
+ ;;
+ esac
+ done