This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Remove 64bit configure tests for sparc and mips in config-ml.in


config-ml.in has some logic to disable multilibs if the 64bit
libraries cannot be built.  This did work until libgcc was moved to
the toplevel, now the check is used for a 64bit libgcc multilib as
well, and fails because libgcc isn't yet built. However the failure is
hidden because in the inner case statement the value for the multilib
option is tested instead of the multilib dir and the 64bit multilib
libgcc is built anyway. Other biarch platforms don't check, so is it
ok to remove the checks for sparc and mips as well?

  Matthias

Checking multilib configuration for libgcc...
Configuring stage 1 in sparc-linux-gnu/libgcc
configure: creating cache ./config.cache
[...]
configure: creating ./config.status
config.status: creating Makefile
config.status: executing default commands
/usr/bin/ld: crtbeginS.o: No such file: No such file or directory
collect2: ld returned 1 exit status
Could not link program with -m64, disabling it.
Adding multilib support to Makefile in ../../../src/libgcc
multidirs=64
with_multisubdir=
Running configure in multilib subdirs 64
pwd: /build/buildd/gcc-snapshot-20071126/build/sparc-linux-gnu/libgcc
Running configure in multilib subdir 64
pwd: /build/buildd/gcc-snapshot-20071126/build/sparc-linux-gnu
mkdir 64
configure: creating cache ./config.cache


2007-11-30  Matthias Klose  <doko@ubuntu.com>

	* config-ml.in: Remove 64bit configure tests.

Index: config-ml.in
===================================================================
--- config-ml.in	(revision 130534)
+++ config-ml.in	(working copy)
@@ -382,28 +382,6 @@
 	    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_aix64 = xno ]
@@ -495,30 +473,6 @@
 	  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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]