From 554fd8c5195424bdbcabf5de30fdc183aba391bd Mon Sep 17 00:00:00 2001 From: upstream source tree Date: Sun, 15 Mar 2015 20:14:05 -0400 Subject: obtained gcc-4.6.4.tar.bz2 from upstream website; verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository. --- gcc/testsuite/ada/acats/run_acats | 73 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100755 gcc/testsuite/ada/acats/run_acats (limited to 'gcc/testsuite/ada/acats/run_acats') diff --git a/gcc/testsuite/ada/acats/run_acats b/gcc/testsuite/ada/acats/run_acats new file mode 100755 index 000000000..c1ed39f85 --- /dev/null +++ b/gcc/testsuite/ada/acats/run_acats @@ -0,0 +1,73 @@ +#!/bin/sh + +if [ "$testdir" = "" ]; then + echo You must use make check or make check-ada + exit 1 +fi + +# Provide which replacement. +# +# type -p is missing from Solaris 2 /bin/sh and /bin/ksh (ksh88), but both +# ksh93 and bash have it. +# type output format differs between ksh88 and ksh93, so avoid it if +# type -p is present. Unfortunately, HP-UX /bin/sh ignores -p with type. +# Fall back to whence which ksh88 and ksh93 provide, but bash does not. + +which () { + path=`type -p $* 2>/dev/null` && { echo $path | awk '{print $NF}'; return 0; } + path=`type $* 2>/dev/null` && { echo $path | awk '{print $NF}'; return 0; } + path=`whence $* 2>/dev/null` && { echo $path; return 0; } + return 1 +} + +# Set up environment to use the Ada compiler from the object tree + +host_gnatchop=`which gnatchop` +host_gnatmake=`which gnatmake` +ROOT=`${PWDCMD-pwd}` +BASE=`cd $ROOT/../../..; ${PWDCMD-pwd}` + +PATH=$BASE:$ROOT:$PATH +ADA_INCLUDE_PATH=$BASE/ada/rts +LD_LIBRARY_PATH=$ADA_INCLUDE_PATH:$BASE:$LD_LIBRARY_PATH +ADA_OBJECTS_PATH=$ADA_INCLUDE_PATH + +if [ ! -d $ADA_INCLUDE_PATH ]; then + echo gnatlib missing, exiting. + exit 1 +fi + +if [ ! -f $BASE/gnatchop ]; then + echo gnattools missing, exiting. + exit 1 +fi + +if [ ! -f $BASE/gnatmake ]; then + echo gnattools missing, exiting. + exit 1 +fi + +GCC_DRIVER="$BASE/xgcc" +GCC="$BASE/xgcc -B$BASE/" +export PATH ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_DRIVER GCC LD_LIBRARY_PATH + +echo '#!/bin/sh' > host_gnatchop +echo PATH=`dirname $host_gnatchop`:'$PATH' >> host_gnatchop +echo unset ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_EXEC_PREFIX >> host_gnatchop +echo export PATH >> host_gnatchop +echo exec gnatchop '"$@"' >> host_gnatchop + +chmod +x host_gnatchop + +echo '#!/bin/sh' > host_gnatmake +echo PATH=`dirname $host_gnatmake`:'$PATH' >> host_gnatmake +echo unset ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_EXEC_PREFIX >> host_gnatmake +echo export PATH >> host_gnatmake +echo exec gnatmake '"$@"' >> host_gnatmake + +chmod +x host_gnatmake + +# Limit the stack to 16MB for stack checking +ulimit -s 16384 + +exec $testdir/run_all.sh ${1+"$@"} -- cgit v1.2.3