diff options
author | Steve Ellcey <sellcey@imgtec.com> | 2015-06-02 17:12:16 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2015-06-02 17:12:16 +0000 |
commit | 1a607203b23e1429dd128b106d5a476a8fd1a8a4 (patch) | |
tree | c5597f2310f4f256698d91129727befc601a4e1a /contrib | |
parent | c2d474827dbd15616799ea703ea39659d7222dce (diff) | |
download | gcc-1a607203b23e1429dd128b106d5a476a8fd1a8a4.zip gcc-1a607203b23e1429dd128b106d5a476a8fd1a8a4.tar.gz gcc-1a607203b23e1429dd128b106d5a476a8fd1a8a4.tar.bz2 |
test_installed (--target=): New option.
2015-06-02 Steve Ellcey <sellcey@imgtec.com>
* test_installed (--target=): New option.
From-SVN: r224034
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 4 | ||||
-rwxr-xr-x | contrib/test_installed | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index b5da9e6..f3ccc93 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2015-06-02 Steve Ellcey <sellcey@imgtec.com> + + * test_installed (--target=): New option. + 2015-05-30 Mikhail Maltsev <maltsevm@gmail.com> * gimple.vim: New file. diff --git a/contrib/test_installed b/contrib/test_installed index e518cbc..54a8396 100755 --- a/contrib/test_installed +++ b/contrib/test_installed @@ -46,7 +46,7 @@ while true; do case "$1" in --with-testsuite=*) testsuite=`echo "$1" | sed 's/[^=]*=//'`; shift;; --srcdir=*) srcdir=`echo "$1" | sed 's/[^=]*=//'`; shift;; - + --target=*) target=`echo "$1" | sed 's/[^=]*=//'`; shift;; --prefix=*) prefix=`echo "$1" | sed 's/[^=]*=//'`; shift;; --with-gcc=*) GCC_UNDER_TEST=`echo "$1" | sed 's/[^=]*=//'`; shift;; --with-g++=*) GXX_UNDER_TEST=`echo "$1" | sed 's/[^=]*=//'`; shift;; @@ -71,6 +71,9 @@ Supported arguments: --srcdir=/some/dir same as --with-testsuite=/some/dir/gcc/testsuite [deduced from shell-script pathname] +--target=triplet The target architecture of the compiler being + tested if different than the host. + --prefix=/some/dir use gcc, g++ and gfortran from /some/dir/bin [PATH] --with-gcc=/some/dir/bin/gcc use specified gcc program [gcc] --with-g++=/some/dir/bin/g++ use specified g++ program [g++] @@ -112,6 +115,10 @@ set GXX_UNDER_TEST "${GXX_UNDER_TEST-${prefix}${prefix+/bin/}g++}" set GFORTRAN_UNDER_TEST "${GFORTRAN_UNDER_TEST-${prefix}${prefix+/bin/}gfortran}" set OBJC_UNDER_TEST "${OBJC_UNDER_TEST-${prefix}${prefix+/bin/}gcc}" EOF +if test x${target} != x; then + echo "set target_triplet $target" >> site.exp + echo "set target_alias $target" >> site.exp +fi test x"${GCC_UNDER_TEST}" = x"no" || runtest --tool gcc ${1+"$@"} test x"${GXX_UNDER_TEST}" = x"no" || runtest --tool g++ ${1+"$@"} |