2c2fa1
Some functionality is available on RHEL-5.4+ only with gcc44 and gfortran44 as
2c2fa1
the default gcc and gfortran binaries are from gcc-4.1.
2c2fa1
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.base/vla.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.base/vla.exp	2013-01-18 23:43:04.455756362 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.base/vla.exp	2013-01-18 23:43:08.082761164 +0100
2c2fa1
@@ -16,7 +16,25 @@
2c2fa1
 set testfile vla
2c2fa1
 set srcfile ${testfile}.c
2c2fa1
 set binfile ${objdir}/${subdir}/${testfile}
2c2fa1
-if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
2c2fa1
+# Temporarily provide compiler=gcc44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists compiler] {
2c2fa1
+    set old_compiler [board_info $board compiler]
2c2fa1
+    unset_board_info compiler
2c2fa1
+} elseif [info exists old_compiler] {
2c2fa1
+    unset old_compiler
2c2fa1
+}
2c2fa1
+set_board_info compiler gcc44
2c2fa1
+
2c2fa1
+set err [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug quiet}]
2c2fa1
+
2c2fa1
+unset_board_info compiler
2c2fa1
+if [info exists old_compiler] {
2c2fa1
+    set_board_info compiler $old_compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if  { $err != "" } {
2c2fa1
     untested "Couldn't compile test program"
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.base/break-interp.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.base/break-interp.exp	2013-01-18 23:43:04.456756365 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.base/break-interp.exp	2013-01-18 23:43:08.082761164 +0100
2c2fa1
@@ -34,9 +34,29 @@ if [get_compiler_info] {
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
 
2c2fa1
+# Temporarily provide compiler=gcc44 saving the original value around.
2c2fa1
+# RHEL-5 workaround of its:
2c2fa1
+#   gcc: -soname: linker input file unused because linking not done
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists compiler] {
2c2fa1
+    set old_compiler [board_info $board compiler]
2c2fa1
+    unset_board_info compiler
2c2fa1
+} elseif [info exists old_compiler] {
2c2fa1
+    unset old_compiler
2c2fa1
+}
2c2fa1
+set_board_info compiler gcc44
2c2fa1
+
2c2fa1
 # Use -soname so that the new library gets copied by build_executable_own_libs.
2c2fa1
 
2c2fa1
-if {[gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} [list debug ldflags=-Wl,-soname,${test}.so]] != ""} {
2c2fa1
+set err [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} [list debug ldflags=-Wl,-soname,${test}.so]]
2c2fa1
+
2c2fa1
+unset_board_info compiler
2c2fa1
+if [info exists old_compiler] {
2c2fa1
+    set_board_info compiler $old_compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if { $err != "" } {
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
 
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/common-block.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.fortran/common-block.exp	2013-01-18 23:43:08.082761164 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/common-block.exp	2013-01-18 23:44:23.047856182 +0100
2c2fa1
@@ -22,8 +22,25 @@ if {[skip_fortran_tests]} {
2c2fa1
 
2c2fa1
 standard_testfile .f90
2c2fa1
 
2c2fa1
-if {[prepare_for_testing ${testfile}.exp ${testfile} \
2c2fa1
-	 $srcfile {debug f90 quiet}]} {
2c2fa1
+# Temporarily provide f90compiler=gfortran44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists f90compiler] {
2c2fa1
+    set old_f90compiler [board_info $board f90compiler]
2c2fa1
+    unset_board_info f90compiler
2c2fa1
+} elseif [info exists old_f90compiler] {
2c2fa1
+    unset old_f90compiler
2c2fa1
+}
2c2fa1
+set_board_info f90compiler gfortran44
2c2fa1
+
2c2fa1
+set err [prepare_for_testing ${testfile}.exp ${testfile} $srcfile {debug f90 quiet}]
2c2fa1
+
2c2fa1
+unset_board_info f90compiler
2c2fa1
+if [info exists old_f90compiler] {
2c2fa1
+    set_board_info f90compiler $old_f90compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if {$err} {
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
 
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/dwarf-stride.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.fortran/dwarf-stride.exp	2013-01-18 23:43:04.456756365 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/dwarf-stride.exp	2013-01-18 23:43:08.083761148 +0100
2c2fa1
@@ -27,7 +27,25 @@
2c2fa1
 set testfile dwarf-stride
2c2fa1
 set srcfile ${testfile}.f90
2c2fa1
 
2c2fa1
-if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug f90}] } {
2c2fa1
+# Temporarily provide f90compiler=gfortran44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists f90compiler] {
2c2fa1
+    set old_f90compiler [board_info $board f90compiler]
2c2fa1
+    unset_board_info f90compiler 
2c2fa1
+} elseif [info exists old_f90compiler] {
2c2fa1
+    unset old_f90compiler
2c2fa1
+} 
2c2fa1
+set_board_info f90compiler gfortran44
2c2fa1
+
2c2fa1
+set err [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug f90}]
2c2fa1
+
2c2fa1
+unset_board_info f90compiler
2c2fa1
+if [info exists old_f90compiler] {
2c2fa1
+    set_board_info f90compiler $old_f90compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if $err {
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
 
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/dynamic.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.fortran/dynamic.exp	2013-01-18 23:43:04.457756367 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/dynamic.exp	2013-01-18 23:43:08.083761148 +0100
2c2fa1
@@ -25,7 +25,25 @@ set testfile "dynamic"
2c2fa1
 set srcfile ${testfile}.f90
2c2fa1
 set binfile ${objdir}/${subdir}/${testfile}
2c2fa1
 
2c2fa1
-if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug f90 quiet}] != "" } {
2c2fa1
+# Temporarily provide f90compiler=gfortran44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists f90compiler] {
2c2fa1
+    set old_f90compiler [board_info $board f90compiler]
2c2fa1
+    unset_board_info f90compiler
2c2fa1
+} elseif [info exists old_f90compiler] {
2c2fa1
+    unset old_f90compiler
2c2fa1
+}
2c2fa1
+set_board_info f90compiler gfortran44
2c2fa1
+
2c2fa1
+set err [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug f90 quiet}]
2c2fa1
+
2c2fa1
+unset_board_info f90compiler
2c2fa1
+if [info exists old_f90compiler] {
2c2fa1
+    set_board_info f90compiler $old_f90compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if  { $err != "" } {
2c2fa1
     untested "Couldn't compile ${srcfile}"
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/library-module.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.fortran/library-module.exp	2013-01-18 23:43:04.457756367 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/library-module.exp	2013-01-18 23:43:08.083761148 +0100
2c2fa1
@@ -23,16 +23,34 @@ if [get_compiler_info] {
2c2fa1
    return -1
2c2fa1
 }
2c2fa1
 
2c2fa1
-if  { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" $libfile {debug f90}] != "" } {
2c2fa1
-    untested "Couldn't compile ${srclibfile}"
2c2fa1
-    return -1
2c2fa1
+# Temporarily provide f90compiler=gfortran44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists f90compiler] {
2c2fa1
+    set old_f90compiler [board_info $board f90compiler]
2c2fa1
+    unset_board_info f90compiler
2c2fa1
+} elseif [info exists old_f90compiler] {
2c2fa1
+    unset old_f90compiler
2c2fa1
 }
2c2fa1
+set_board_info f90compiler gfortran44
2c2fa1
 
2c2fa1
 # prepare_for_testing cannot be used as linking with $libfile cannot be passed
2c2fa1
 # just for the linking phase (and not the source compilation phase).  And any
2c2fa1
 # warnings on ignored $libfile abort the process.
2c2fa1
 
2c2fa1
-if  { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug f90 shlib=$libfile]] != "" } {
2c2fa1
+set err1 [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" $libfile {debug f90}]
2c2fa1
+set err2 [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug f90 shlib=$libfile]]
2c2fa1
+
2c2fa1
+unset_board_info f90compiler
2c2fa1
+if [info exists old_f90compiler] {
2c2fa1
+    set_board_info f90compiler $old_f90compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if  { $err1 != "" } {
2c2fa1
+    untested "Couldn't compile ${srclibfile}"
2c2fa1
+    return -1
2c2fa1
+}
2c2fa1
+if  { $err2 != "" } {
2c2fa1
     untested "Couldn't compile ${srcfile}"
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/module.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.fortran/module.exp	2013-01-18 23:43:04.457756367 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/module.exp	2013-01-18 23:43:08.083761148 +0100
2c2fa1
@@ -15,7 +15,25 @@
2c2fa1
 
2c2fa1
 standard_testfile .f90
2c2fa1
 
2c2fa1
-if { [prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}] } {
2c2fa1
+# Temporarily provide f90compiler=gfortran44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists f90compiler] {
2c2fa1
+    set old_f90compiler [board_info $board f90compiler]
2c2fa1
+    unset_board_info f90compiler
2c2fa1
+} elseif [info exists old_f90compiler] {
2c2fa1
+    unset old_f90compiler
2c2fa1
+}
2c2fa1
+set_board_info f90compiler gfortran44
2c2fa1
+
2c2fa1
+set err [prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]
2c2fa1
+
2c2fa1
+unset_board_info f90compiler
2c2fa1
+if [info exists old_f90compiler] {
2c2fa1
+    set_board_info f90compiler $old_f90compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if $err {
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
 
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/string.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.fortran/string.exp	2013-01-18 23:43:04.457756367 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/string.exp	2013-01-18 23:43:08.083761148 +0100
2c2fa1
@@ -23,7 +23,25 @@ set testfile "string"
2c2fa1
 set srcfile ${testfile}.f90
2c2fa1
 set binfile ${objdir}/${subdir}/${testfile}
2c2fa1
 
2c2fa1
-if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug f90 quiet}] != "" } {
2c2fa1
+# Temporarily provide f90compiler=gfortran44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists f90compiler] {
2c2fa1
+    set old_f90compiler [board_info $board f90compiler]
2c2fa1
+    unset_board_info f90compiler
2c2fa1
+} elseif [info exists old_f90compiler] {
2c2fa1
+    unset old_f90compiler
2c2fa1
+}
2c2fa1
+set_board_info f90compiler gfortran44
2c2fa1
+
2c2fa1
+set err [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug f90 quiet}]
2c2fa1
+
2c2fa1
+unset_board_info f90compiler
2c2fa1
+if [info exists old_f90compiler] {
2c2fa1
+    set_board_info f90compiler $old_f90compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if { $err != "" } {
2c2fa1
     untested "Couldn't compile ${srcfile}"
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/omp-step.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.fortran/omp-step.exp	2013-01-18 23:43:04.458756369 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/omp-step.exp	2013-01-18 23:43:08.083761148 +0100
2c2fa1
@@ -15,7 +15,26 @@
2c2fa1
 
2c2fa1
 set testfile "omp-step"
2c2fa1
 set srcfile ${testfile}.f90
2c2fa1
-if { [prepare_for_testing $testfile.exp $testfile $srcfile {debug f90 additional_flags=-fopenmp}] } {
2c2fa1
+
2c2fa1
+# Temporarily provide f90compiler=gfortran44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists f90compiler] {
2c2fa1
+    set old_f90compiler [board_info $board f90compiler]
2c2fa1
+    unset_board_info f90compiler 
2c2fa1
+} elseif [info exists old_f90compiler] {
2c2fa1
+    unset old_f90compiler
2c2fa1
+} 
2c2fa1
+set_board_info f90compiler gfortran44
2c2fa1
+
2c2fa1
+set err [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug f90 additional_flags=-fopenmp}]
2c2fa1
+
2c2fa1
+unset_board_info f90compiler
2c2fa1
+if [info exists old_f90compiler] {
2c2fa1
+    set_board_info f90compiler $old_f90compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if $err {
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
 
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/derived-type.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.fortran/derived-type.exp	2013-01-18 23:43:04.458756369 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/derived-type.exp	2013-01-18 23:43:08.084761135 +0100
2c2fa1
@@ -22,7 +22,25 @@ if { [skip_fortran_tests] } { return -1
2c2fa1
 
2c2fa1
 standard_testfile .f90
2c2fa1
 
2c2fa1
-if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]} {
2c2fa1
+# Temporarily provide f90compiler=gfortran44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists f90compiler] {
2c2fa1
+    set old_f90compiler [board_info $board f90compiler]
2c2fa1
+    unset_board_info f90compiler
2c2fa1
+} elseif [info exists old_f90compiler] {
2c2fa1
+    unset old_f90compiler
2c2fa1
+}
2c2fa1
+set_board_info f90compiler gfortran44
2c2fa1
+
2c2fa1
+set err [prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]
2c2fa1
+
2c2fa1
+unset_board_info f90compiler
2c2fa1
+if [info exists old_f90compiler] {
2c2fa1
+    set_board_info f90compiler $old_f90compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if $err {
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
 
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/subarray.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.fortran/subarray.exp	2013-01-18 23:43:04.458756369 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.fortran/subarray.exp	2013-01-18 23:43:08.084761135 +0100
2c2fa1
@@ -22,7 +22,25 @@ if { [skip_fortran_tests] } { return -1
2c2fa1
 
2c2fa1
 standard_testfile .f
2c2fa1
 
2c2fa1
-if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]} {
2c2fa1
+# Temporarily provide f90compiler=gfortran44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists f90compiler] {
2c2fa1
+    set old_f90compiler [board_info $board f90compiler]
2c2fa1
+    unset_board_info f90compiler
2c2fa1
+} elseif [info exists old_f90compiler] {
2c2fa1
+    unset old_f90compiler
2c2fa1
+}
2c2fa1
+set_board_info f90compiler gfortran44
2c2fa1
+
2c2fa1
+set err [prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]
2c2fa1
+
2c2fa1
+unset_board_info f90compiler
2c2fa1
+if [info exists old_f90compiler] {
2c2fa1
+    set_board_info f90compiler $old_f90compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if $err {
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
 
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.threads/tls-sepdebug.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.threads/tls-sepdebug.exp	2013-01-18 23:43:04.459756371 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.threads/tls-sepdebug.exp	2013-01-18 23:43:08.084761135 +0100
2c2fa1
@@ -32,7 +32,25 @@ set binshareddebugfile ${objdir}/${subdi
2c2fa1
 
2c2fa1
 # FIXME: gcc dependency (-Wl,-soname).
2c2fa1
 
2c2fa1
-if  { [gdb_compile_shlib "${srcdir}/${subdir}/${srcsharedfile}" "${binsharedfile}" [list debug additional_flags=-Wl,-soname=${binsharedbase}]] != "" } {
2c2fa1
+# Temporarily provide compiler=gcc44 saving the original value around.
2c2fa1
+
2c2fa1
+set board [target_info name]
2c2fa1
+if [board_info $board exists compiler] {
2c2fa1
+    set old_compiler [board_info $board compiler]
2c2fa1
+    unset_board_info compiler
2c2fa1
+} elseif [info exists old_compiler] {
2c2fa1
+    unset old_compiler
2c2fa1
+}
2c2fa1
+set_board_info compiler gcc44
2c2fa1
+
2c2fa1
+set err [gdb_compile_shlib "${srcdir}/${subdir}/${srcsharedfile}" "${binsharedfile}" [list debug additional_flags=-Wl,-soname=${binsharedbase}]]
2c2fa1
+
2c2fa1
+unset_board_info compiler
2c2fa1
+if [info exists old_compiler] {
2c2fa1
+    set_board_info compiler $old_compiler
2c2fa1
+}
2c2fa1
+
2c2fa1
+if { $err != "" } {
2c2fa1
     untested "Couldn't compile test library"
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
Index: gdb-7.5.50.20130118/gdb/testsuite/lib/prelink-support.exp
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/testsuite/lib/prelink-support.exp	2013-01-18 23:43:04.459756371 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/testsuite/lib/prelink-support.exp	2013-01-18 23:43:08.084761135 +0100
2c2fa1
@@ -119,9 +119,31 @@ proc file_copy {src dest} {
2c2fa1
 proc build_executable_own_libs {testname executable sources options {interp ""} {dir ""}} {
2c2fa1
     global objdir subdir
2c2fa1
 
2c2fa1
-    if {[build_executable $testname $executable $sources $options] == -1} {
2c2fa1
-	return ""
2c2fa1
+    # Temporarily provide compiler=gcc44 saving the original value around.
2c2fa1
+    # RHEL-5 workaround of its:
2c2fa1
+    #   gcc: -rpath: linker input file unused because linking not done
2c2fa1
+    #   gcc: --dynamic-linker: linker input file unused because linking not done
2c2fa1
+
2c2fa1
+    set board [target_info name]
2c2fa1
+    if [board_info $board exists compiler] {
2c2fa1
+	set old_compiler [board_info $board compiler]
2c2fa1
+	unset_board_info compiler
2c2fa1
+    } elseif [info exists old_compiler] {
2c2fa1
+	unset old_compiler
2c2fa1
+    }
2c2fa1
+    set_board_info compiler gcc44
2c2fa1
+
2c2fa1
+    set err [build_executable $testname $executable $sources $options]
2c2fa1
+
2c2fa1
+    unset_board_info compiler
2c2fa1
+    if [info exists old_compiler] {
2c2fa1
+	set_board_info compiler $old_compiler
2c2fa1
     }
2c2fa1
+
2c2fa1
+    if { $err == -1 } {
2c2fa1
+	return ""   
2c2fa1
+    }
2c2fa1
+
2c2fa1
     set binfile ${objdir}/${subdir}/${executable}
2c2fa1
 
2c2fa1
     set command "ldd $binfile"