Check-in [3c8be3d88b]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updated to GCC 4.6.3

Added support for scripts to validate whether a patch is needed or not

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3c8be3d88bc81f882df72164b7ad4fa6cd40b5af
User & Date: rkeene 2012-08-09 05:45:22
Context
2013-08-06
20:00
Fixed AIX platform naming during collection check-in: 4c71db1e90 user: rkeene tags: trunk
2012-09-02
19:24
Create new branch named "llvm" check-in: e141bd787f user: rkeene tags: llvm
19:23
Began work on adding Java support Leaf check-in: ad10c6064e user: rkeene tags: java-support
2012-08-09
05:45
Updated to GCC 4.6.3

Added support for scripts to validate whether a patch is needed or not check-in: 3c8be3d88b user: rkeene tags: trunk

2012-07-23
15:53
Updated to deal with Debian-ized platforms that install certain platform files into /usr/lib/<platform> check-in: 7c00a2a0d5 user: rkeene tags: trunk
Changes

Changes to build-cc.

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
..
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
...
360
361
362
363
364
365
366

367
368
369






370
371
372
373
374
375
376
## Load configuration file
if [ -f "build-cc.conf" ]; then
	. "build-cc.conf"
fi

# Tool versions
BINUTILS_VERS='2.22'
GCC_VERS='4.6.2'
GMP_VERS='5.0.2'
MPFR_VERS='3.0.1'
MPC_VERS='0.9'

# Start of script
## Initialize default values
use_multilib='1'
................................................................................
## URLs
### Binutils
BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERS}.tar.bz2"
BINUTILS_TARBALL="src/binutils-${BINUTILS_VERS}.tar.bz2"
BINUTILS_DIR="binutils-${BINUTILS_VERS}"

### GCC
GCC_URL="http://mirrors-us.seosue.com/gcc/releases/gcc-${GCC_VERS}/gcc-${GCC_VERS}.tar.bz2"
GCC_TARBALL="src/gcc-${GCC_VERS}.tar.bz2"
GCC_DIR="gcc-${GCC_VERS}"

### GMP
GMP_URL="http://ftp.gnu.org/gnu/gmp/gmp-${GMP_VERS}.tar.bz2"
GMP_TARBALL="src/gmp-${GMP_VERS}.tar.bz2"
GMP_DIR="gmp-${GMP_VERS}"
................................................................................
		mv "${GMP_DIR}" "${GCC_DIR}/gmp"
		mv "${MPFR_DIR}" "${GCC_DIR}/mpfr"
		mv "${MPC_DIR}" "${GCC_DIR}/mpc"

		# Apply patches
		## Apply patch files
		for patchfile in "$(pwd)/patches/gcc"/*.diff; do

			if [ ! -f "${patchfile}" ]; then
				continue
			fi







			(
				echo " * Applying patch ${patchfile}"

				cd "${GCC_DIR}" || exit 1

				"${PATCH:-patch}" -p1 < "${patchfile}" || exit 1







|







 







|







 







>



>
>
>
>
>
>







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
..
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
...
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
## Load configuration file
if [ -f "build-cc.conf" ]; then
	. "build-cc.conf"
fi

# Tool versions
BINUTILS_VERS='2.22'
GCC_VERS='4.6.3'
GMP_VERS='5.0.2'
MPFR_VERS='3.0.1'
MPC_VERS='0.9'

# Start of script
## Initialize default values
use_multilib='1'
................................................................................
## URLs
### Binutils
BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERS}.tar.bz2"
BINUTILS_TARBALL="src/binutils-${BINUTILS_VERS}.tar.bz2"
BINUTILS_DIR="binutils-${BINUTILS_VERS}"

### GCC
GCC_URL="http://mirrors.kernel.org/gnu/gcc/gcc-${GCC_VERS}/gcc-${GCC_VERS}.tar.bz2"
GCC_TARBALL="src/gcc-${GCC_VERS}.tar.bz2"
GCC_DIR="gcc-${GCC_VERS}"

### GMP
GMP_URL="http://ftp.gnu.org/gnu/gmp/gmp-${GMP_VERS}.tar.bz2"
GMP_TARBALL="src/gmp-${GMP_VERS}.tar.bz2"
GMP_DIR="gmp-${GMP_VERS}"
................................................................................
		mv "${GMP_DIR}" "${GCC_DIR}/gmp"
		mv "${MPFR_DIR}" "${GCC_DIR}/mpfr"
		mv "${MPC_DIR}" "${GCC_DIR}/mpc"

		# Apply patches
		## Apply patch files
		for patchfile in "$(pwd)/patches/gcc"/*.diff; do
			patchfile_checkscript="$(echo "${patchfile}" | sed 's@\.diff$@.sh@')"
			if [ ! -f "${patchfile}" ]; then
				continue
			fi

			if [ -x "${patchfile_checkscript}" ]; then
				if ! "${patchfile_checkscript}" "${GCC_VERS}"; then
					continue
				fi
			fi

			(
				echo " * Applying patch ${patchfile}"

				cd "${GCC_DIR}" || exit 1

				"${PATCH:-patch}" -p1 < "${patchfile}" || exit 1

Added patches/gcc/gcc-4.6.1-fixgmon.sh.

















>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
#! /bin/bash

# This patch only applies to GCC 4.6.x
if echo "$1" | grep '^4\.6\.' >/dev/null; then
	exit 0
fi

exit 1

Added patches/gcc/gcc-4.6.1-fixsonamelink.sh.

















>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
#! /bin/bash

# This patch only applies to GCC 4.6.x
if echo "$1" | grep '^4\.6\.' >/dev/null; then
	exit 0
fi

exit 1

Added patches/gcc/gcc-4.6.1-netbsdmultilibs.sh.

















>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
#! /bin/bash

# This patch only applies to GCC 4.6.x
if echo "$1" | grep '^4\.6\.' >/dev/null; then
	exit 0
fi

exit 1