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]

Re: solaris 32/64 configury


On Apr 18, 2002, Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> wrote:

>   .../configure ; make bootstrap

> broken for those (many) hosts not running a 64-bit kernel (which was the
> problem in target/6237).

> And personally I believe that a simple '.../configure ; make bootstrap'
> should nearly always work, even if that means some more advanced features/
> situations need special treatment by the user, so I disagree with Rainer
> here.

Couldn't we solve this similarly to the way IRIX6 handles systems
without 64-bit libraries?

config-ml.in mips*-*-* has:

	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


I understand the sparc situation is a bit trickier in that linking
would succeed, only to fail to run-time, so we'd have to tell cross
from native compilers, but I thought I'd point this out anyway.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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