Merge.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Oct 01 22:12:18 2009 +0200 (2009-10-01)
changeset 1548cfc3843177f3
parent 1545 431001e537ca
parent 1547 9317c32fe7e5
child 1549 96c8f555bf7f
Merge.
     1.1 --- a/README	Mon Sep 28 19:31:19 2009 +0200
     1.2 +++ b/README	Thu Oct 01 22:12:18 2009 +0200
     1.3 @@ -22,8 +22,8 @@
     1.4  You can also point your browser to
     1.5    http://ymorin.is-a-geek.org/projects/crosstool
     1.6  
     1.7 -PARTICIPATING /
     1.8 -_____________/
     1.9 +CONTRIBUTING /
    1.10 +____________/
    1.11  
    1.12  Sending a bug report
    1.13  --------------------
    1.14 @@ -50,6 +50,19 @@
    1.15    - mq        : http://mercurial.selenic.com/wiki/MqExtension
    1.16    - patchbomb : http://mercurial.selenic.com/wiki/PatchbombExtension
    1.17  
    1.18 +Commit messages should look like (without leading pipes):
    1.19 + |component: short, one-line description
    1.20 + |
    1.21 + |optional longer description
    1.22 + |on multiple lines if needed
    1.23 +
    1.24 +Here is an example commit message (see revision a53a5e1d61db):
    1.25 + |comp-libs/cloog: fix building
    1.26 + |
    1.27 + |For CLooG/PPL 0.15.3, the directory name was simply cloog-ppl.
    1.28 + |For any later versions, the directory name does have the version, such as
    1.29 + |cloog-ppl-0.15.4.
    1.30 +
    1.31  Here's a typical hacking session:
    1.32    hg clone http://ymorin.is-a-geek.org/hg/crosstool-ng crosstool-ng
    1.33    cd crosstool-ng
     2.1 --- a/scripts/config.guess	Mon Sep 28 19:31:19 2009 +0200
     2.2 +++ b/scripts/config.guess	Thu Oct 01 22:12:18 2009 +0200
     2.3 @@ -4,7 +4,7 @@
     2.4  #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
     2.5  #   Free Software Foundation, Inc.
     2.6  
     2.7 -timestamp='2009-08-19'
     2.8 +timestamp='2009-09-18'
     2.9  
    2.10  # This file is free software; you can redistribute it and/or modify it
    2.11  # under the terms of the GNU General Public License as published by
    2.12 @@ -854,6 +854,20 @@
    2.13      i*86:Minix:*:*)
    2.14  	echo ${UNAME_MACHINE}-pc-minix
    2.15  	exit ;;
    2.16 +    alpha:Linux:*:*)
    2.17 +	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
    2.18 +	  EV5)   UNAME_MACHINE=alphaev5 ;;
    2.19 +	  EV56)  UNAME_MACHINE=alphaev56 ;;
    2.20 +	  PCA56) UNAME_MACHINE=alphapca56 ;;
    2.21 +	  PCA57) UNAME_MACHINE=alphapca56 ;;
    2.22 +	  EV6)   UNAME_MACHINE=alphaev6 ;;
    2.23 +	  EV67)  UNAME_MACHINE=alphaev67 ;;
    2.24 +	  EV68*) UNAME_MACHINE=alphaev68 ;;
    2.25 +        esac
    2.26 +	objdump --private-headers /bin/sh | grep -q ld.so.1
    2.27 +	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    2.28 +	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    2.29 +	exit ;;
    2.30      arm*:Linux:*:*)
    2.31  	eval $set_cc_for_build
    2.32  	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
    2.33 @@ -876,6 +890,9 @@
    2.34      frv:Linux:*:*)
    2.35      	echo frv-unknown-linux-gnu
    2.36  	exit ;;
    2.37 +    i*86:Linux:*:*)
    2.38 +	echo ${UNAME_MACHINE}-pc-linux-gnu
    2.39 +	exit ;;
    2.40      ia64:Linux:*:*)
    2.41  	echo ${UNAME_MACHINE}-unknown-linux-gnu
    2.42  	exit ;;
    2.43 @@ -911,29 +928,12 @@
    2.44      or32:Linux:*:*)
    2.45  	echo or32-unknown-linux-gnu
    2.46  	exit ;;
    2.47 -    ppc:Linux:*:*)
    2.48 -	echo powerpc-unknown-linux-gnu
    2.49 -	exit ;;
    2.50 -    ppc64:Linux:*:*)
    2.51 -	echo powerpc64-unknown-linux-gnu
    2.52 -	exit ;;
    2.53 -    alpha:Linux:*:*)
    2.54 -	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
    2.55 -	  EV5)   UNAME_MACHINE=alphaev5 ;;
    2.56 -	  EV56)  UNAME_MACHINE=alphaev56 ;;
    2.57 -	  PCA56) UNAME_MACHINE=alphapca56 ;;
    2.58 -	  PCA57) UNAME_MACHINE=alphapca56 ;;
    2.59 -	  EV6)   UNAME_MACHINE=alphaev6 ;;
    2.60 -	  EV67)  UNAME_MACHINE=alphaev67 ;;
    2.61 -	  EV68*) UNAME_MACHINE=alphaev68 ;;
    2.62 -        esac
    2.63 -	objdump --private-headers /bin/sh | grep -q ld.so.1
    2.64 -	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    2.65 -	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    2.66 -	exit ;;
    2.67      padre:Linux:*:*)
    2.68  	echo sparc-unknown-linux-gnu
    2.69  	exit ;;
    2.70 +    parisc64:Linux:*:* | hppa64:Linux:*:*)
    2.71 +	echo hppa64-unknown-linux-gnu
    2.72 +	exit ;;
    2.73      parisc:Linux:*:* | hppa:Linux:*:*)
    2.74  	# Look for CPU level
    2.75  	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    2.76 @@ -942,8 +942,11 @@
    2.77  	  *)    echo hppa-unknown-linux-gnu ;;
    2.78  	esac
    2.79  	exit ;;
    2.80 -    parisc64:Linux:*:* | hppa64:Linux:*:*)
    2.81 -	echo hppa64-unknown-linux-gnu
    2.82 +    ppc64:Linux:*:*)
    2.83 +	echo powerpc64-unknown-linux-gnu
    2.84 +	exit ;;
    2.85 +    ppc:Linux:*:*)
    2.86 +	echo powerpc-unknown-linux-gnu
    2.87  	exit ;;
    2.88      s390:Linux:*:* | s390x:Linux:*:*)
    2.89  	echo ${UNAME_MACHINE}-ibm-linux
    2.90 @@ -966,58 +969,6 @@
    2.91      xtensa*:Linux:*:*)
    2.92      	echo ${UNAME_MACHINE}-unknown-linux-gnu
    2.93  	exit ;;
    2.94 -    i*86:Linux:*:*)
    2.95 -	# The BFD linker knows what the default object file format is, so
    2.96 -	# first see if it will tell us. cd to the root directory to prevent
    2.97 -	# problems with other programs or directories called `ld' in the path.
    2.98 -	# Set LC_ALL=C to ensure ld outputs messages in English.
    2.99 -	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
   2.100 -			 | sed -ne '/supported targets:/!d
   2.101 -				    s/[ 	][ 	]*/ /g
   2.102 -				    s/.*supported targets: *//
   2.103 -				    s/ .*//
   2.104 -				    p'`
   2.105 -        case "$ld_supported_targets" in
   2.106 -	  elf32-i386)
   2.107 -		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
   2.108 -		;;
   2.109 -	esac
   2.110 -	# Determine whether the default compiler is a.out or elf
   2.111 -	eval $set_cc_for_build
   2.112 -	sed 's/^	//' << EOF >$dummy.c
   2.113 -	#include <features.h>
   2.114 -	#ifdef __ELF__
   2.115 -	# ifdef __GLIBC__
   2.116 -	#  if __GLIBC__ >= 2
   2.117 -	LIBC=gnu
   2.118 -	#  else
   2.119 -	LIBC=gnulibc1
   2.120 -	#  endif
   2.121 -	# else
   2.122 -	LIBC=gnulibc1
   2.123 -	# endif
   2.124 -	#else
   2.125 -	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
   2.126 -	LIBC=gnu
   2.127 -	#else
   2.128 -	LIBC=gnuaout
   2.129 -	#endif
   2.130 -	#endif
   2.131 -	#ifdef __dietlibc__
   2.132 -	LIBC=dietlibc
   2.133 -	#endif
   2.134 -EOF
   2.135 -	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
   2.136 -	    /^LIBC/{
   2.137 -		s: ::g
   2.138 -		p
   2.139 -	    }'`"
   2.140 -	test x"${LIBC}" != x && {
   2.141 -		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
   2.142 -		exit
   2.143 -	}
   2.144 -	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
   2.145 -	;;
   2.146      i*86:DYNIX/ptx:4*:*)
   2.147  	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
   2.148  	# earlier versions are messed up and put the nodename in both
   2.149 @@ -1247,6 +1198,16 @@
   2.150      *:Darwin:*:*)
   2.151  	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
   2.152  	case $UNAME_PROCESSOR in
   2.153 +	    i386)
   2.154 +		eval $set_cc_for_build
   2.155 +		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
   2.156 +		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
   2.157 +		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
   2.158 +		      grep IS_64BIT_ARCH >/dev/null
   2.159 +		  then
   2.160 +		      UNAME_PROCESSOR="x86_64"
   2.161 +		  fi
   2.162 +		fi ;;
   2.163  	    unknown) UNAME_PROCESSOR=powerpc ;;
   2.164  	esac
   2.165  	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     3.1 --- a/scripts/config.sub	Mon Sep 28 19:31:19 2009 +0200
     3.2 +++ b/scripts/config.sub	Thu Oct 01 22:12:18 2009 +0200
     3.3 @@ -4,7 +4,7 @@
     3.4  #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
     3.5  #   Free Software Foundation, Inc.
     3.6  
     3.7 -timestamp='2009-08-19'
     3.8 +timestamp='2009-09-25'
     3.9  
    3.10  # This file is (in principle) common to ALL GNU software.
    3.11  # The presence of a machine in this file suggests that SOME GNU software
    3.12 @@ -287,6 +287,7 @@
    3.13  	| pdp10 | pdp11 | pj | pjl \
    3.14  	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    3.15  	| pyramid \
    3.16 +	| rx \
    3.17  	| score \
    3.18  	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
    3.19  	| sh64 | sh64le \
    3.20 @@ -300,7 +301,7 @@
    3.21  	| z8k | z80)
    3.22  		basic_machine=$basic_machine-unknown
    3.23  		;;
    3.24 -	m6811 | m68hc11 | m6812 | m68hc12)
    3.25 +	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
    3.26  		# Motorola 68HC11/12.
    3.27  		basic_machine=$basic_machine-unknown
    3.28  		os=-none
    3.29 @@ -371,7 +372,7 @@
    3.30  	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    3.31  	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
    3.32  	| pyramid-* \
    3.33 -	| romp-* | rs6000-* \
    3.34 +	| romp-* | rs6000-* | rx-* \
    3.35  	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
    3.36  	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
    3.37  	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \