summaryrefslogtreecommitdiff
path: root/gcc/testsuite/ada
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-14 10:04:31 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-14 10:04:31 +0000
commit4aa04e5ae22269a3e94dd61294de4d0b47752c00 (patch)
tree692ce97ccc8099a421e07e4ad2bc9fc4d81446f9 /gcc/testsuite/ada
parent1ed032ba54517f7e0a55d0561ab8c4e72a6d6b9d (diff)
downloadgcc-4aa04e5ae22269a3e94dd61294de4d0b47752c00.tar.gz
PR ada/13035
* ada/acats/run_acats, run_all.sh: Fix syntax errors. No longer use a wrapper for gcc, since this does not work under Windows, use --GCC switch instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73592 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/ada')
-rwxr-xr-xgcc/testsuite/ada/acats/run_acats16
-rwxr-xr-xgcc/testsuite/ada/acats/run_all.sh14
2 files changed, 11 insertions, 19 deletions
diff --git a/gcc/testsuite/ada/acats/run_acats b/gcc/testsuite/ada/acats/run_acats
index c037a3f9791..27963856f74 100755
--- a/gcc/testsuite/ada/acats/run_acats
+++ b/gcc/testsuite/ada/acats/run_acats
@@ -7,17 +7,14 @@ fi
# Set up environment to use the Ada compiler from the object tree
-host_gnatmake=`type gnatmake | awk '{print $3}`
-host_gcc=`type gcc | awk '{print $3}`
+host_gnatmake=`type gnatmake | awk '{print $3}'`
ROOT=`${PWDCMD-pwd}`
BASE=`cd $ROOT/../../..; ${PWDCMD-pwd}`
PATH=$BASE:$ROOT:$PATH
ADA_INCLUDE_PATH=$BASE/ada/rts
ADA_OBJECTS_PATH=$ADA_INCLUDE_PATH
-export PATH ADA_INCLUDE_PATH ADA_OBJECTS_PATH
-
-echo '#!/bin/sh' > gcc
-echo exec $BASE/xgcc -B$BASE/ '"$@"' >> gcc
+GCC="$BASE/xgcc -B$BASE/"
+export PATH ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC
echo '#!/bin/sh' > host_gnatmake
echo PATH=`dirname $host_gnatmake`:'$PATH' >> host_gnatmake
@@ -25,11 +22,6 @@ echo unset ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_EXEC_PREFIX >> host_gnatmake
echo export PATH >> host_gnatmake
echo exec $host_gnatmake '"$@"' >> host_gnatmake
-echo '#!/bin/sh' > host_gcc
-echo PATH=`dirname $host_gcc`:'$PATH' >> host_gcc
-echo export PATH >> host_gcc
-echo exec $host_gcc '"$@"' >> host_gcc
-
-chmod +x gcc host_gnatmake host_gcc
+chmod +x host_gnatmake
exec $testdir/run_all.sh "$@"
diff --git a/gcc/testsuite/ada/acats/run_all.sh b/gcc/testsuite/ada/acats/run_all.sh
index 73605a410c0..f6b1cb4a084 100755
--- a/gcc/testsuite/ada/acats/run_all.sh
+++ b/gcc/testsuite/ada/acats/run_all.sh
@@ -48,11 +48,11 @@ if [ "$dir" = "$testdir" ]; then
fi
target_gnatmake () {
- gnatmake $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS
+ gnatmake --GCC="$GCC" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC="$GCC"
}
target_gcc () {
- gcc $gccflags $*
+ $GCC $gccflags $*
}
clean_dir () {
@@ -66,10 +66,10 @@ rm -f $dir/acats.sum $dir/acats.log
display " === acats configuration ==="
-display `type gcc`
-display `gcc -v 2>&1`
-display host=`host_gcc -dumpmachine`
-display target=`gcc -dumpmachine`
+display target gcc is $GCC
+display `$GCC -v 2>&1`
+display host=`gcc -dumpmachine`
+display target=`$GCC -dumpmachine`
display `type gnatmake`
gnatls -v >> $dir/acats.log
display ""
@@ -114,7 +114,7 @@ if [ $? -ne 0 ]; then
fi
./macrosub > macrosub.out 2>&1
-host_gcc -c cd300051.c
+gcc -c cd300051.c
host_gnatmake -q -gnatws widechr.adb
if [ $? -ne 0 ]; then
display "**** Failed to compile widechr"